!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("lodash"),require("react"),require("react-dom")):"function"==typeof define&&define.amd?define("rb_wixui.thunderbolt[ProGallery]",["lodash","react","reactDOM"],t):"object"==typeof exports?exports["rb_wixui.thunderbolt[ProGallery]"]=t(require("lodash"),require("react"),require("react-dom")):e["rb_wixui.thunderbolt[ProGallery]"]=t(e._,e.React,e.ReactDOM)}("undefined"!=typeof self?self:this,(function(e,t,r){return function(){var i,a,o={37757:function(e,t,r){var i=r(82016);e.exports=i.create("ProGallery669818973",{classes:{root:"ProGallery669818973__root",container:"ProGallery669818973__container","container-prerender":"ProGallery669818973__container-prerender","pro-gallery-container":"pro-gallery-parent-container",item:"gallery-item-container","gallery-arrows":"nav-arrows-container","gallery-arrows-no-container":"nav-arrows-container only-arrows",info:"ProGallery669818973__info",fullscreen:"ProGallery669818973__fullscreen",loadmore:"show-more",x:"ProGallery669818973__x"},vars:{overFreemiumBanner:"--ProGallery669818973-overFreemiumBanner",overFullscreen:"--ProGallery669818973-overFullscreen"},stVars:{"--variant-count":"var(--variant-count)"},keyframes:{},layers:{}},"",-1,e.id)},82016:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createRenderable=t.create=void 0;t.create=function(e,t,r,i,a,o){const s={namespace:e,classes:t.classes,keyframes:t.keyframes,layers:t.layers,vars:t.vars,stVars:t.stVars,cssStates:function(e){const t=[];for(const r in e){const i=n(r,e[r]);i&&t.push(i)}return t.join(" ")},style:l,st:l,$id:a,$depth:i,$css:r};function n(t,r){if(!1===r||null==r||r!=r)return"";if(!0===r)return function(t){return`${e}--${t}`}(t);return function(t,r){return`${e}---${t}-${r.length}-${r.replace(/\s/gm,"_")}`}(t,r.toString())}function l(){const e=[];for(let t=0;t{const r=t.dto.imageToken||t.dto.token;return r?(e=e.replace(/,wm_.+\//g,"/"))+`?token=${r}`:e},s=r(85901);const n=function(e){let{imageToken:t,staticMediaUrls:r,useOptimizedImageFormat:i,isPrerenderMode:a}=void 0===e?{}:e;return e=>d({...e,imageToken:t,staticMediaUrls:r,isPrerenderMode:a,shouldUseOptimizedImageFormat:i??!0})},l=function(){for(var e=arguments.length,t=new Array(e),r=0;r{const r=/(^https?)|(^data)|(^blob)/.test(e),i=0===e.indexOf(t),a=e.indexOf("preventResize")>0;return r&&(!i||a)},c=(e,t)=>u(e,t)?e:l(t,e);const h=33e6,m=e=>{let{item:t,originalUrl:r,resizeMethod:i,requiredWidth:l,requiredHeight:u,sharpParams:m,focalPoint:p,useWebp:d=!1,devicePixelRatio:y=1,WIX_MEDIA_PREFIX:_,isPrerenderMode:v}=e;const P=t.maxHeight,f=t.maxWidth;if(v){const{nextWidth:e,nextHeight:r}=((e,t,r,i)=>{if(e>1||t>1){const a=Math.min(r.maxWidth,480*Math.ceil(e/480));let o=t/e;return"fit"===i&&(o=r.originalHeight/r.originalWidth),{nextWidth:a,nextHeight:Math.ceil(a*o)}}return{nextWidth:e,nextHeight:t}})(l,u,t,n());l=e,u=r}const b=Math.max(s.G.isMobile()&&!s.G.isSSR()?a.Z.screen.width/320:1,1);l=Math.ceil(l*y*b),u=Math.ceil(u*y*b);const I=f*P,{maxHeight:S,maxWidth:E}=function(e,t,r){if(e*t>r){const i=t/e,a=Math.floor(Math.sqrt(r/i));return{maxWidth:a,maxHeight:Math.floor(a*i)}}return{maxWidth:e,maxHeight:t}}(l,u,I{if(!p||p.every((e=>.5===e)))return i=g({resizeMethod:i,isPrerenderMode:v,requiredHeight:u,requiredWidth:l}),`/v1/${i}/w_${l},h_${u}`;{const e=p.map((e=>String(Math.floor(100*e)/100).slice(0,4))).join("_");return`/v1/fill/w_${l},h_${u},fp_${e}`}})(),O+=(()=>{var e,t,i,a,o,s;(m=m||{},m.quality||(m.quality=90),m.quality=Math.min(90,m.quality),!0===m.allowUsm)&&(m.usm.usm_a=Math.min(5,Math.max(0,(null==(e=m.usm)?void 0:e.usm_a)||(null==(t=m.usm)||null==(t=t.usm)?void 0:t.a)||0)),m.usm.usm_r=Math.min(128,Math.max(0,(null==(i=m.usm)?void 0:i.usm_r)||(null==(a=m.usm)||null==(a=a.usm)?void 0:a.r)||0)),m.usm.usm_t=Math.min(1,Math.max(0,(null==(o=m.usm)?void 0:o.usm_t)||(null==(s=m.usm)||null==(s=s.usm)?void 0:s.t)||0)));let n="";return n+=",q_"+m.quality,m.blur&&!(r.indexOf(".png")>0||r.indexOf(".gif")>0)&&(n+=",blur_"+m.blur),n+=m.usm&&m.usm.usm_r?",usm_"+m.usm.usm_r.toFixed(2)+"_"+m.usm.usm_a.toFixed(2)+"_"+m.usm.usm_t.toFixed(2):"",n})(),O+="/"+(d?r.replace(/[^.]\w*$/,"webp"):r).match(/[^/][\w.~]*$/)[0],O=o(O,t),O},p=e=>({jpg:"jpeg",jpeg:"jpeg",png:"png",gif:"gif"}[e.match(/[^\.]\w*$/)[0]]||"jpeg"),d=e=>{let{item:t,originalUrl:r,resizeMethod:a,requiredWidth:o,requiredHeight:s,sharpParams:n={},focalPoint:h=[.5,.5],createMultiple:m=!1,imageToken:p="",staticMediaUrls:d={},shouldUseOptimizedImageFormat:g,isPrerenderMode:_}=e;if(!r)return;const v=null!=d&&d.staticMediaUrl?d.staticMediaUrl:"https://static.wixstatic.com/media/",P=null!=d&&d.staticVideoUrl?d.staticVideoUrl:"https://video.wixstatic.com/",f=t.dto.imageToken||t.dto.token||p;r=((e,t)=>{if(e.indexOf("preventResize")>=0)return e;e=e.replace(t,"");const r=/(\/v\d\/(fill|fit|crop)\/(((w|h|x|y|scl|al|q)_[cf\d]*)\,?)*){1,}/.exec(e);return r&&r.index>0?e.substr(0,r.index):e})(r,v);const b={item:t,originalUrl:r,resizeMethod:a,requiredWidth:o,requiredHeight:s,sharpParams:n,focalPoint:h,isPrerenderMode:_};return a===i.Z.resizeMethods.VIDEO?((e,t)=>{let{item:r,originalUrl:i,requiredHeight:a}=e,o=i;if(r.qualities&&r.qualities.length){let e="/";const i=r.qualities.filter((e=>"mp4"===e.formats[0]));i.length>1&&i[0].height>i[1].height&&i.reverse();for(let s,n=0;s=i[n];n++)if(s.height>=a||!i[n+1]){e+=s.quality;for(let i,a=0;i=s.formats[a];a++)o=l(t,"video/",r.url,e,i,"/file."+i);break}return o}})({item:t,originalUrl:r,resizeMethod:a,requiredWidth:o,requiredHeight:s,sharpParams:n,focalPoint:h,isPrerenderMode:_},P):u(r,v)?r:"full"!==a||f?y({createMultiple:m,params:b,WIX_MEDIA_PREFIX:v,shouldUseOptimizedImageFormat:g,originalUrl:r,hasImageToken:f}):c(r,v)},y=e=>{let{createMultiple:t,params:r,WIX_MEDIA_PREFIX:i,shouldUseOptimizedImageFormat:a,originalUrl:o,hasImageToken:s}=e;if(t){const e=(e,t)=>e.map((e=>m({...r,useWebp:t,devicePixelRatio:e,WIX_MEDIA_PREFIX:i})+` ${e}x`)).join(", "),t=[...a?[{type:"webp",url:m({...r,useWebp:!0,devicePixelRatio:1,WIX_MEDIA_PREFIX:i}),dpr:e([1,1.5,2,3,4,5],!0)}]:[],{type:p(o),url:m({...r,useWebp:!1,devicePixelRatio:1,shouldUseOptimizedImageFormat:a,WIX_MEDIA_PREFIX:i}),dpr:e([1,2,3,4,5],!1)}],n=c(o,i);return s?t:[{type:p(o),url:n,dpr:[1,2,3,4,5,6,7,8].map((e=>`${n} ${e}x`)).join(", "),forPrinting:!0},...t]}return m({...r,WIX_MEDIA_PREFIX:i})},g=e=>{let{resizeMethod:t,isPrerenderMode:r,requiredHeight:a,requiredWidth:o}=e,s=t===i.Z.resizeMethods.FIT||r?i.Z.resizeMethods.FIT:i.Z.resizeMethods.FILL;return a<=1&&o<=1&&(s=i.Z.resizeMethods.FILL),s}},17229:function(e,t,r){"use strict";r.d(t,{Z:function(){return p}});const i=()=>({}),a=2560,o=1440,s={y:0,x:0,width:a,height:o,innerWidth:a,innerHeight:o,clientWidth:a,clientHeight:o},n={parentNode:{...s,getBoundingClientRect:()=>s,removeChild:i,appendChild:i,setAttribute:i},offsetWidth:a,offsetheight:o,removeChild:i,appendChild:i,setAttribute:i},l={...s,...n,getBoundingClientRect:()=>s},u={initCustomEvent:i,createEvent:i,composedPath:i,initEvent:i,preventDefault:i,stopImmediatePropagation:i,stopPropagation:i},c={addEventListener:i,removeEventListener:i,createEvent:()=>u,createElement:()=>l,getElementById:()=>l,getElementsByClassName:()=>[l],getElementsByTagName:()=>[l],querySelector:()=>[l],documentElement:l,activeElement:l,style:s,...s};c.body=c;const h={isMock:!0,isSSR:!0,orientation:0,devicePixelRatio:1,scrollTop:0,addEventListener:i,removeEventListener:i,createEvent:i,CustomEvent:i,screen:s,open:i,petri:{},search:{},location:{href:"http://mock.wix.com/",protocol:"http:",host:"mock.wix.com",hostname:"mock.wix.com",port:"",pathname:"/",search:"",hash:""},postMessage:i,requestAnimationFrame:i,dispatchEvent:i,document:c,getComputedStyle:i,localStorage:{},frames:[],...s};h.parent=h;var m=h;var p=(new class{constructor(){this.reset()}windowIsAvailable(){try{return"undefined"!=typeof window}catch(e){return!1}}reset(){this.isMock=!this.windowIsAvailable(),this.window=this.isMock?m:window,this.isMock&&(this.window.mockInstanceId=Math.floor(1e5*Math.random()))}}).window},85901:function(e,t,r){"use strict";r.d(t,{G:function(){return l},Z:function(){return n}});var i=r(60484),a=r(72124),o=r(17229);const s=void 0;class n{constructor(){this._cache={},this._hash2int={},this._params={},this._useCache=this.shouldUseCache(),this.setIsWixMobile=this.setIsWixMobile.bind(this)}shouldUseCache(){let e=!0;try{e=o.Z&&o.Z.Wix&&o.Z.Wix.Utils&&o.Z.Wix.Utils.getViewMode()}catch(e){}return!!this.isUndefined(e)||"editor"!==e&&"preview"!==e}isUndefined(e){return void 0===e}getOrPutFromCache(e,t){return!this._useCache||this.isSSR()?t():(void 0!==this._cache[e]||(this._cache[e]=t()),this._cache[e])}isDemo(){return"1"===this.parseGetParam("demo")}isInWix(){return this.isTest()||this.getOrPutFromCache("isInWix",(()=>{try{return top!==self&&("progallery.wix.com"===document.location.host||"progallery.wixapps.net"===document.location.host)&&document.location.search.indexOf("instance=")>=0}catch(e){return!1}}))}isSemiNative(){try{return o.Z.semiNative}catch(e){return!1}}hashToInt(e,t,r){let i=0;if(this.isUndefined(e)||0===e.length)return i;if(!this._hash2int[e]){for(let t=0;t{i=t.split("="),i[0]===e&&(r=decodeURIComponent(i[1]))})),!r){const t=decodeURIComponent(a.pathname).split("?")[1];if(!t)return"";t.split("&").forEach((t=>{i=t.split("="),i[0]===e&&(r=decodeURIComponent(i[1]))}))}return this._params[e]=r,r}catch(e){return!1}}parsePathParam(e){const t=location.pathname.split("/");for(let r=0;r=0)return i}return""}parseHashParam(e){let t="",r=[];const i=location.href.split("#")[1]||"";return i?(i.substr(1).split("&").forEach((i=>{r=i.split("="),r[0]===e&&(t=decodeURIComponent(r[1]))})),t):""}stripSlashes(e){let t="";return"string"==typeof e&&(t=e.replace(/\\\//g,"/").replace(/\\'/g,"'").replace(/\\"/g,'"').replace(/\\0/g,"\0").replace(/\\\\/g,"\\")),t}parseStringObject(e){if("string"!=typeof e)return e;const t=this.stripSlashes(e);if("string"==typeof e&&/^[\],:{}\s]*$/.test(t.replace(/\\["\\\/bfnrtu]/g,"@").replace(/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,"]").replace(/(?:^|:|,)(?:\s*\[)+/g,"")))try{return JSON.parse(t)}catch(e){}return t}isWixMobile(){const e=()=>{const e=this.parseGetParam("deviceType")||o.Z.deviceType;return!!("true"===this.parseGetParam("showMobileView"))||(e?String(e).toLowerCase().indexOf("mobile")>=0:void 0)};return this.isSite()?this.getOrPutFromCache("isWixMobile",e):e()}isUserAgentMobile(){try{const e=()=>{let e=!1;var t;return t=navigator.userAgent||navigator.vendor||o.Z.opera,(/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|pixel|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino/i.test(t)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s\-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|\-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw\-(n|u)|c55\/|capi|ccwa|cdm\-|cell|chtm|cldc|cmd\-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc\-s|devi|dica|dmob|do(c|p)o|ds(12|\-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(\-|_)|g1 u|g560|gene|gf\-5|g\-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd\-(m|p|t)|hei\-|hi(pt|ta)|hp( i|ip)|hs\-c|ht(c(\-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i\-(20|go|ma)|i230|iac( |\-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc\-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|\-[a-w])|libw|lynx|m1\-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m\-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(\-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)\-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\-([1-8]|c))|phil|pire|pl(ay|uc)|pn\-2|po(ck|rt|se)|prox|psio|pt\-g|qa\-a|qc(07|12|21|32|60|\-[2-7]|i\-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h\-|oo|p\-)|sdk\/|se(c(\-|0|1)|47|mc|nd|ri)|sgh\-|shar|sie(\-|m)|sk\-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h\-|v\-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl\-|tdg\-|tel(i|m)|tim\-|t\-mo|to(pl|sh)|ts(70|m\-|m3|m5)|tx\-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|\-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas\-|your|zeto|zte\-/i.test(t.substr(0,4)))&&(e=!0),e};return this.isSite()?this.getOrPutFromCache("isUserAgentMobile",e):e()}catch(e){return!1}}setIsWixMobile(e){o.Z.deviceType=e?"mobile":"desktop",this._cache.isWixMobile=e,this._cache.isMobile=e}isMobile(){const e=()=>{const e=this.isWixMobile(),t=this.isUserAgentMobile();return this.isUndefined(e)?t:e};return!this.isTest()&&(this.isSite()?this.getOrPutFromCache("isMobile",e):e())}isTest(){try{return o.Z.isTest}catch(e){return!1}}isDev(){return this.getOrPutFromCache("isDev",(()=>this.isLocal()||this.isOOI()&&!1||this.shouldDebug("ph_local")||!!this.parseGetParam("debug")||"true"===(this.safeLocalStorage()||{}).forceDevMode))}isVerbose(){return!this.isTest()&&("true"===(this.safeLocalStorage()||{}).forceDevMode||this.shouldDebug("ph_verbose"))}isLocal(){return this.getOrPutFromCache("isLocal",(()=>{const e=o.Z.location.hostname||"";return"local.wix.com"===e||"0.0.0.0"===e||e.indexOf("localhost")>=0||null!==/([0-9]{1,3}\.){3}[0-9]{1,3}:[0-9]{1,5}/.exec(e)}))}isStoreGallery(){return this.getOrPutFromCache("isStoreGallery",(()=>{if(this.isSemiNative())return!1;try{return o.Z.location.search.toLowerCase().indexOf("isstore")>-1}catch(e){return this.isDev()&&console.error("cant find window",e),!1}}))}isDemoMode(){return s&&s.Utils&&s.Utils.getInstanceValue&&s.Utils.getInstanceValue("demoMode")}isSSR(){return!!o.Z.isMock}isOOI(){return this.isSSR()||"undefined"!=typeof top&&"undefined"!=typeof self&&(top===self||self.location.href.includes("AlbumsGOGOOI")||self.location.origin.includes("editor.wix.com")||self.location.origin.includes("blocks.wix.com")||self.location.origin.includes("editorx.com"))}isPremium(){return this.getOrPutFromCache("isPremium",(()=>{const e=this.shouldDebug("ph_force_premium"),t=this.shouldDebug("ph_force_freemium");return!!e||!t}))}updateViewMode(e){if("string"==typeof e&&this.isOOI())return this._cache.viewMode=e.toLowerCase(),this._cache.viewMode;try{if(o.Z&&o.Z.Wix&&o.Z.Wix.Utils&&o.Z.Wix.Utils.getViewMode)return this._cache.viewMode=o.Z.Wix.Utils.getViewMode(),this._cache.viewMode}catch(e){return!1}}getViewModeFromCache(){return this.getOrPutFromCache("viewMode",(()=>{try{if(this.isOOI()){this.isVerbose()&&console.warn("OOI - viewMode not found, returning site if not in wix.com(old test)");try{return o.Z.location.host.includes("wixapps.net")?"undefined":"site"}catch(e){return"undefined"}}return this.isSSR()?"site":o.Z&&o.Z.Wix&&o.Z.Wix.Utils&&o.Z.Wix.Utils.getViewMode?o.Z.Wix.Utils.getViewMode():"undefined"}catch(e){return!1}}))}isEditor(){return(this.isOOI()||!!this.isInWix())&&"editor"===this.getViewModeFromCache()}isPreview(){return(this.isOOI()||!!this.isInWix())&&"preview"===this.getViewModeFromCache()}isSite(){return this.isOOI()?"site"===this.getViewModeFromCache():!this.isEditor()&&!this.isPreview()}getUUID(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(e=>{const t=16*Math.random()|0;return("x"===e?t:3&t|8).toString(16)}))}generateUUID(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(e=>{const t=Math.floor(16*Math.random())||0;return"x"===e?t.toString(16):e}))}isInSettings(){return"1"===this.parseGetParam("expandsettingsmode")}isExternalUrl(e){return/(^https?)|(^data)|(^blob)/.test(e)}isMobileViewer(){return this.getOrPutFromCache("isMobileViewer",(()=>{const e=this.isWixMobile(),t=this.isUserAgentMobile();return e&&!t}))}isiOS(){return this.getOrPutFromCache("isiOS",(()=>{try{return/iPad|iPhone|iPod/.test(navigator.userAgent)&&!o.Z.MSStream}catch(e){return!1}}))}isiPhone(){return this.getOrPutFromCache("isiPhone",(()=>{try{return/iPhone/.test(navigator.userAgent)&&!o.Z.MSStream}catch(e){return!1}}))}isTouch(){return this.getOrPutFromCache("isTouch",(()=>{try{return this.isMobile()||"ontouchstart"in o.Z.document.documentElement}catch(e){return!1}}))}browserIs(e){return this.getOrPutFromCache("browsers",(()=>{const e={chrome:!1,chromeIos:!1,explorer:!1,firefox:!1,safari:!1,opera:!1};try{return e.chrome=navigator.userAgent.indexOf("Chrome")>-1,e.chromeIos=navigator.userAgent.indexOf("CriOS")>-1,e.explorer=navigator.userAgent.indexOf("MSIE")>-1||!!navigator.userAgent.match(/Trident.*rv\:11\./),e.firefox=navigator.userAgent.indexOf("Firefox")>-1,e.safari=navigator.userAgent.indexOf("Safari")>-1,e.opera=navigator.userAgent.toLowerCase().indexOf("op")>-1,e.chrome&&e.safari&&(e.safari=!1),e.chrome&&e.opera&&(e.chrome=!1),e}catch(t){return e}}))[e]}isPlayground(){if(this.isInWix())return!1;try{let e=!1;try{e=top.location.href.indexOf("playground.html")>0}catch(t){e=!1}return e}catch(e){return!1}}isInAlbumsBuilder(){if(!this.isInWix())return!1;try{return o.Z&&o.Z.debugApp&&o.Z.debugApp.indexOf("ph_source_albums")>-1}catch(e){return!1}}isWixDomain(){try{return o.Z.location.href.indexOf("wixapps.net")>=0}catch(e){return!1}}isLandscape(){return!this.isSemiNative()&&this.getOrPutFromCache("isLandscape",(()=>{if(!this.isMobile())return!1;try{if(this.isUndefined(o.Z.orientation)){const e=o.Z.matchMedia("(orientation: landscape)");return!(!e||!0!==e.matches)}return 90===o.Z.orientation||-90===o.Z.orientation}catch(e){return!1}}))}isOnBoarding(){try{const e=(0,a.Qc)(o.Z.location.search);return!!e.viewMode&&"onboarding"===e.viewMode.toLowerCase()}catch(e){return!1}}isAccessibilityEnabled(){return this.getOrPutFromCache("isAccessibilityEnabled",(()=>{if(!this.isSite())return!1;if(this.isOOI())return!1;const e=this.shouldDebug("accessibility");if(s&&"function"==typeof s.isVisualFocusEnabled)try{s.isVisualFocusEnabled((t=>t||e))}catch(e){}return e}))}isDebugBuild(){try{return!1}catch(e){return!1}}getDeviceType(){return this.isWixMobile()?"mobile":"desktop"}safeLocalStorage(){try{return localStorage||o.Z}catch(e){return o.Z}}shouldDebug(e){try{return!!this.safeLocalStorage()[e]||(o.Z.debugApp||"").indexOf(e)>=0||(this.parseGetParam("debugApp")||"").indexOf(e)>=0}catch(e){return!1}}shouldLog(e){return this.shouldDebug("ph_log_"+e)}getDateCreatedTicksFromStr(e){return!1===isNaN(Date.parse(e))?Date.parse(e):Date.parse("2017-07-09T14:08:21.000Z")}deviceHasMemoryIssues(){return this.isiOS()}getUrlPrefix(e){try{return o.Z.location.protocol+"//"+(!e&&this.isLocal()?"local.wix.com:3001":"progallery.wixapps.net")+"/"}catch(e){return console.error("getUrlPrefix",{e:e}),"http://progallery.wixapps.net/"}}getFullscreenSectionId(){return this.isStoreGallery()?"fullscreen_store_page":"fullscreen_page"}getApiUrlPrefix(){return this.getUrlPrefix(!0)+"api/v1/"}generateUrl(e,t){t=t||{};const r=this.isStoreGallery(),i=this.getUrlPrefix()+e;r&&(t.isStore=!0);const o=(0,a.Pz)(t);return o?i+"?"+o:i}getTextEditorUrl(){return this.generateUrl("text-editor.html")}getManageMediaUrl(){return this.generateUrl("photos.html")}getExpandSettingsUrl(e){return this.generateUrl("settings-expand.html",e)}getSettingsWatermarkDisableUrl(){return this.generateUrl("settings-watermark-disable.html")}getSettingsAddonsUrl(e){return void 0===e&&(e={}),this.generateUrl("settings-addons.html",e)}getProviderModalUrl(e){return void 0===e&&(e={}),this.generateUrl("provider-modal.html",e)}getTabIndex(e){const t=["currentGalleryItem","loadMoreButton","slideshowNext","slideshowPrev","currentThumbnail","slideshowLove","slideshowShare","cartIcon","cartClose","cartFrame","fullscreenClose","fullscreenNext","fullscreenPrev","fullscreenInfo","fullscreenLink","fullscreenProvider","fullscreenCartButton","fullscreenCheckout","fullscreenExpand","fullscreenVideoPlay","fullscreenVideoBar","fullscreenVideoMute","fullscreenVideoVolume","fullscreenCartIcon","fullscreenDownload","fullscreenLove","fullscreenShare"].indexOf(e)+1;return t>=0&&this.isOOI()?0:t||-1}safeSessionStorage(){try{return sessionStorage}catch(e){return o.Z||{}}}getLocalStorage(){if(this.isDev())return this.safeSessionStorage();return this.safeLocalStorage()||this.safeSessionStorage()}setStateAndLog(e,t,r,a){if(this.isVerbose()){console.log(`State Change Called (${t})`,r);const o=(0,i.clone)(e.state);e.setState(r,(()=>{const r=(0,i.clone)(e.state),s=this.printableObjectsDiff(o,r,"state");(0,i.keys)(s).length>0&&console.log(`State Change Completed (${t})`,s),(0,i.isFunction)(a)&&a.bind(e)()}))}else e.setState(r,(()=>{(0,i.isFunction)(a)&&a.bind(e)()}))}printableObjectsDiff(e,t,r){void 0===r&&(r="");const a=e=>(""===e?e="''":this.isUndefined(e)&&(e="undefined"),(0,i.toString)(e)),o=(e,t,r)=>(0,i.reduce)(e,((e,s,n)=>((0,i.isEqual)(s,t[n])||((0,i.isArray)(t[n])?(s.length!==t[n].length&&(e[n+".length"]="["+s.length+"] => ["+t[n].length+"]"),e=(0,i.merge)(e,o(s,t[n],(r?r+".":"")+n))):(0,i.isObject)(t[n])?e=(0,i.merge)(e,o(s,t[n],(r?r+".":"")+n)):e[(r?r+".":"")+n]=a(s)+" => "+a(t[n])),e)),{});return o(e,t,r)}setExternalId(){try{const e=this.getUUID();this._setExternalId(e),this.setExternalIdTimeouts||(this.setExternalIdTimeouts={});for(let t=1e3;t<1e4;t+=1e3)this.setExternalIdTimeouts[t]&&clearTimeout(this.setExternalIdTimeouts[t]),this.setExternalIdTimeouts[t]=setTimeout((()=>this._setExternalId(e)),t)}catch(e){return console.error("Utils setExternalId - fail"),!1}}_setExternalId(e){s.Settings.setExternalId(e,(t=>{this.isDev()&&console.log("Utils setExternalId - success",e,t)}),(t=>{console.error("Utils setExternalId - fail",e,t)}))}isWebpSupported(){if(this.isTest())return!1;try{const e="object"==typeof document?o.Z.document.createElement("canvas"):{};return e.width=e.height=1,!!e.toDataURL&&5===e.toDataURL("image/webp").indexOf("image/webp")}catch(e){return!1}}getGalleryLayoutName(e){switch(e){case 0:return"Collage";case 1:return"Masonry";case 2:return"Grid";case 3:return"Thumbnails";case 4:return"Slider";case 5:return"Slideshow";case 6:return"Strip";case 7:return"Columns";case 8:return"Magic";case 10:return"Bricks";case 11:return"Mix";case 12:return"Alternate";default:return""}}shallowObjectsCompare(e,t){return Object.keys(e).length===Object.keys(t).length&&Object.keys(e).every((r=>t.hasOwnProperty(r)&&e[r]===t[r]))}isSubset(e,t){return Object.keys(t).every((r=>t[r]===e[r]))}}const l=new n},78321:function(e,t,r){"use strict";r.d(t,{W:function(){return s}});var i=r(60484),a=r.n(i),o=r(85901);const s=a().throttle((async(e,t,r)=>{try{const i=await e(t,r);o.G.isiOS()?window.location.href=i:window.open(i,"_blank")}catch(e){console.error("Failed to get custom download url",e)}}),2e3)},98047:function(e,t,r){"use strict";r.d(t,{Z:function(){return o},y:function(){return s}});var i=r(85901),a=r(17229);class o extends i.Z{constructor(){super(),this._cache={},this._hash2int={},this._params={},this._refs={},this._params={}}getScreenWidth(){if(this.isPreview()&&this.isMobile())return 320;if(this.isTest()||this.isSemiNative())return 1920;try{return this.isLandscape()?Math.max(a.Z.screen.width,a.Z.screen.height):a.Z.screen.width}catch(e){return 1920}}getScreenHeight(){if(this.isTest()||this.isSemiNative())return 1200;try{return this.isLandscape()?Math.min(a.Z.screen.width,a.Z.screen.height):a.Z.screen.height}catch(e){return 1200}}getWixMobileFixRatio(){return a.Z.isSSR?1:320/a.Z.screen.width}fixViewport(){if(!this.isSemiNative()&&this.isInWix())try{if(this._cache.isLandscape=void 0,this.isSite()&&this.isMobile()&&!this.isMobileViewer()){const e=this.getViewportScaleRatio();a.Z.document.body.style.transform="scale("+e+")",a.Z.document.body.style.transformOrigin="0 0",a.Z.document.body.style.width=100/e+"%",a.Z.document.body.style.height=100/e+"%"}}catch(e){return!1}}isSmallScreen(){try{return(a.Z.innerWidth||a.Z.outerWidth)<640||this.isMobile()}catch(e){return!1}}isVerticalScreen(){try{return a.Z.innerWidth=0)&&r.document.location.href.indexOf("compId="+e)>=0&&(this._cache.galleries[e]=r)}catch(e){}return this._cache.galleries[e]}getViewportScaleRatio(){const e=void 0!==a.Z&&a.Z.isGallery,t=this.isiOS()&&e;return this.isOOI()||!this.isMobile()||this.isMobileViewer()||!this.isSite()||t?1:320/this.getScreenWidth()}getMobileEnabledClick(e){return this.isMobile()?{onTouchEnd:e}:{onClick:e}}getTopUrlParam(e){if(this.isUndefined(this._cache.params)&&(this._cache.params={}),this.isUndefined(this._cache.params[e]))try{this._cache.params[e]=top.location.search.replace("?","").split("&").map((t=>{const r=t.split("=");return r[0]===e&&r[1]||""})).join("")}catch(t){this._cache.params[e]=!1}return this._cache.params[e]}getGallerySettingsFromWindow(e){void 0===e&&(e=a.Z);try{let t=e&&e.prerenderedGallery&&e.prerenderedGallery.gallerySettings;if(t||(t=e&&e.prerenderedItem&&e.prerenderedItem.gallerySettings),t)return JSON.parse(this.stripSlashes(t))}catch(e){return{}}}getTitleOrFilename(e,t){return"string"==typeof e?e:t}getFullscreenUrlState(e,t,r,i,a){return`${e}/${t}/${r}/?i=${r}&p=${i}&s=${a}`}}const s=new o},91753:function(e){var t;"undefined"!=typeof self&&self,t=function(){return function(e){var t={};function r(i){if(t[i])return t[i].exports;var a=t[i]={i:i,l:!1,exports:{}};return e[i].call(a.exports,a,a.exports,r),a.l=!0,a.exports}return r.m=e,r.c=t,r.d=function(e,t,i){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:i})},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var i=Object.create(null);if(r.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var a in e)r.d(i,a,function(t){return e[t]}.bind(null,a));return i},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="https://static.parastorage.com/services/video-gallery-sdk/1.489.0/",r(r.s=1)}([ /*!*****************************************!*\ !*** ../node_modules/nanoajax/index.js ***! \*****************************************/ /*! no static exports found */ /*! exports used: ajax */ /*! ModuleConcatenation bailout: Module is not an ECMAScript module */function(e,t,r){(function(e){var r=["responseType","withCredentials","timeout","onprogress"];function i(e,t,r){e[t]=e[t]||r}t.ajax=function(t,a){var o=t.headers||{},s=t.body,n=t.method||(s?"POST":"GET"),l=!1,u=t.cors&&e.XDomainRequest&&!/MSIE 1/.test(navigator.userAgent)?new XDomainRequest:e.XMLHttpRequest?new XMLHttpRequest:void 0;function c(e,t){return function(){l||(a(void 0===u.status?e:u.status,0===u.status?"Error":u.response||u.responseText||t,u),l=!0)}}u.open(n,t.url,!0);var h=u.onload=c(200);u.onreadystatechange=function(){4===u.readyState&&h()},u.onerror=c(null,"Error"),u.ontimeout=c(null,"Timeout"),u.onabort=c(null,"Abort"),s&&(i(o,"X-Requested-With","XMLHttpRequest"),e.FormData&&s instanceof e.FormData||i(o,"Content-Type","application/x-www-form-urlencoded"));for(var m=0,p=r.length;mi.createElement("svg",{viewBox:"0 0 24 24",fill:"currentColor",width:e||"24",height:e||"24",...t},i.createElement("path",{fillRule:"evenodd",d:"M4.9937,15.9971 L4.9937,18.4971 C4.9937,18.7721 5.2177,18.9971 5.4937,18.9971 L5.4937,18.9971 L17.4937,18.9971 C17.7697,18.9971 17.9937,18.7721 17.9937,18.4971 L17.9937,18.4971 L17.9937,15.9971 L18.9937,15.9971 L18.9937,18.4971 C18.9937,19.3241 18.3207,19.9971 17.4937,19.9971 L17.4937,19.9971 L5.4937,19.9971 C4.6657,19.9971 3.9937,19.3241 3.9937,18.4971 L3.9937,18.4971 L3.9937,15.9971 L4.9937,15.9971 Z M11.9933,4 L11.9933,14.078 L15.0293,11.043 L15.7363,11.75 L11.4933,15.992 L7.2513,11.75 L7.9583,11.043 L10.9933,14.078 L10.9933,4 L11.9933,4 Z"}));a.displayName="Download";var o=a},17616:function(e,t,r){"use strict";r.d(t,{Z:function(){return o}});var i=r(5329);const a=({size:e,...t})=>i.createElement("svg",{viewBox:"0 0 24 24",fill:"currentColor",width:e||"24",height:e||"24",...t},i.createElement("path",{fillRule:"evenodd",d:"M8.1816,5.0039 C7.9276,5.0039 7.6696,5.0279 7.4106,5.0759 C5.7326,5.3909 4.3566,6.8479 4.0646,8.6189 C3.9346,9.4039 4.0036,10.2029 4.2616,10.9319 C4.2636,10.9379 4.2656,10.9439 4.2676,10.9499 C5.1716,13.8579 10.2066,17.4019 11.7286,18.4189 C11.8966,18.5329 12.1076,18.5309 12.2746,18.4189 C13.7956,17.4019 18.8266,13.8589 19.7326,10.9499 C19.9966,10.2029 20.0646,9.4039 19.9356,8.6189 C19.6426,6.8479 18.2666,5.3909 16.5896,5.0759 C14.9596,4.7749 13.3646,5.4459 12.4126,6.8369 C12.2256,7.1099 11.7736,7.1099 11.5876,6.8369 C10.7866,5.6669 9.5276,5.0039 8.1816,5.0039 M12.0016,19.5029 C11.7136,19.5029 11.4246,19.4189 11.1726,19.2509 C9.1366,17.8899 4.2966,14.3869 3.3156,11.2559 C3.0036,10.3719 2.9216,9.4039 3.0776,8.4569 C3.4436,6.2429 5.1106,4.4889 7.2266,4.0939 C9.0226,3.7539 10.8006,4.3809 11.9996,5.7409 C13.1996,4.3829 14.9766,3.7569 16.7736,4.0939 C18.8896,4.4899 20.5566,6.2429 20.9216,8.4569 C21.0786,9.4069 20.9956,10.3789 20.6816,11.2659 C19.7116,14.3819 14.8676,17.8889 12.8306,19.2509 C12.5786,19.4189 12.2896,19.5029 12.0016,19.5029"}));a.displayName="LikeHeart";var o=a},65345:function(e,t,r){"use strict";r.d(t,{Z:function(){return o}});var i=r(5329);const a=({size:e,...t})=>i.createElement("svg",{viewBox:"0 0 24 24",fill:"currentColor",width:e||"24",height:e||"24",...t},i.createElement("path",{fillRule:"evenodd",d:"M20.9219,8.4561 C20.5569,6.2411 18.8899,4.4871 16.7729,4.0901 C14.9729,3.7521 13.1989,4.3791 11.9999,5.7381 C10.8009,4.3791 9.0259,3.7521 7.2269,4.0901 C5.1099,4.4871 3.4429,6.2411 3.0779,8.4561 C2.9219,9.4021 3.0039,10.3711 3.3159,11.2571 C4.2969,14.3921 9.1369,17.8931 11.1729,19.2541 C11.4249,19.4221 11.7139,19.5061 12.0019,19.5061 C12.2909,19.5061 12.5789,19.4221 12.8309,19.2541 C14.8669,17.8931 19.7109,14.3871 20.6809,11.2661 C20.9959,10.3781 21.0789,9.4061 20.9219,8.4561"}));a.displayName="LikeHeartFill";var o=a},62310:function(e,t,r){"use strict";r.d(t,{Z:function(){return o}});var i=r(5329);const a=({size:e,...t})=>i.createElement("svg",{viewBox:"0 0 24 24",fill:"currentColor",width:e||"24",height:e||"24",...t},i.createElement("path",{fillRule:"evenodd",d:"M14.5,14 C14.628,14 14.752,14.049 14.845,14.138 C14.944,14.232 15,14.363 15,14.5 L15,17.293 L20.293,12 L15,6.707 L15,9.5 C15,9.633 14.947,9.761 14.853,9.854 C14.759,9.947 14.632,10 14.5,10 C14.494,9.998 14.491,10 14.486,10 C13.667,10 7.407,10.222 4.606,16.837 C7.276,14.751 10.496,13.795 14.188,13.989 C14.324,13.996 14.426,14.001 14.476,14.001 C14.484,14 14.492,14 14.5,14 M3.5,19 C3.414,19 3.328,18.979 3.25,18.933 C3.052,18.819 2.957,18.585 3.019,18.365 C5.304,10.189 11.981,9.145 14,9.017 L14,5.5 C14,5.298 14.122,5.115 14.309,5.038 C14.496,4.963 14.71,5.004 14.854,5.146 L21.354,11.646 C21.549,11.842 21.549,12.158 21.354,12.354 L14.854,18.854 C14.71,18.997 14.495,19.038 14.309,18.962 C14.122,18.885 14,18.702 14,18.5 L14,14.981 C9.957,14.791 6.545,16.102 3.857,18.85 C3.761,18.948 3.631,19 3.5,19"}));a.displayName="Share";var o=a},54516:function(e){"use strict"; /* object-assign (c) Sindre Sorhus @license MIT */var t=Object.getOwnPropertySymbols,r=Object.prototype.hasOwnProperty,i=Object.prototype.propertyIsEnumerable;e.exports=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},r=0;r<10;r++)t["_"+String.fromCharCode(r)]=r;if("0123456789"!==Object.getOwnPropertyNames(t).map((function(e){return t[e]})).join(""))return!1;var i={};return"abcdefghijklmnopqrst".split("").forEach((function(e){i[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},i)).join("")}catch(e){return!1}}()?Object.assign:function(e,a){for(var o,s,n=function(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}(e),l=1;l({x:parseFloat(e.split("x")[1].split("y")[0]),y:parseFloat(e.split("y")[1].split("z")[0]),z:parseFloat(e.split("z")[1])}),stylingParams_itemResolutionMode:U,layoutParams_thumbnails_position:W}},1528:function(e,t,r){"use strict";r.d(t,{DT:function(){return v},Gk:function(){return g},Ie:function(){return _},Jn:function(){return o},LC:function(){return s},Re:function(){return h},Sy:function(){return a},Xq:function(){return c},bo:function(){return l},eh:function(){return d},hd:function(){return u},hj:function(){return p},mR:function(){return y},p9:function(){return n},qr:function(){return m}});const i={OVERLAY:"OVERLAY",ABOVE:"ABOVE",BELOW:"BELOW",LEFT:"LEFT",RIGHT:"RIGHT",ALTERNATE_HORIZONTALLY:"ALTERNATE_HORIZONTALLY",ALTERNATE_VERTICALLY:"ALTERNATE_VERTICALLY"},a=e=>String(e).includes(i.OVERLAY),o=(e,t)=>String(e).includes(i.ABOVE)||t%2==0&&String(e).includes(i.ALTERNATE_VERTICALLY),s=(e,t)=>String(e).includes(i.BELOW)||t%2==1&&String(e).includes(i.ALTERNATE_VERTICALLY),n=(e,t)=>String(e).includes(i.RIGHT)||t%2==0&&String(e).includes(i.ALTERNATE_HORIZONTALLY),l=(e,t)=>String(e).includes(i.LEFT)||t%2==1&&String(e).includes(i.ALTERNATE_HORIZONTALLY),u=e=>o(e,0)||s(e,1),c=e=>n(e,0)||l(e,1),h=e=>u(e)&&!c(e)&&!a(e),m=e=>c(e)&&!u(e)&&!a(e),p=e=>String(e)===i.ABOVE,d=e=>String(e)===i.BELOW,y=e=>String(e)===i.OVERLAY,g=e=>String(e)===i.RIGHT,_=e=>String(e)===i.LEFT,v=e=>{const t=e.split(","),r=t.shift();return(e=>p(e)||d(e))(r)&&t.every((e=>e===r))};t.ZP=i},23138:function(e,t,r){"use strict";r.d(t,{L:function(){return o}});var i=r(24641);const a={JSON_FIXED:-3,DESIGNED_PRESET:-2,EMPTY:-1,COLLAGE:0,MASONRY:1,GRID:2,THUMBNAIL:3,SLIDER:4,SLIDESHOW:5,PANORAMA:6,COLUMN:7,MAGIC:8,FULLSIZE:9,BRICKS:10,MIX:11,ALTERNATE:12},o=e=>t=>t[i.Z.layoutParams.structure.galleryLayout]===a[e];t.Z=a},1230:function(e,t){"use strict";t.Z={SITE:"SITE",EDIT:"EDIT",PREVIEW:"PREVIEW",SEO:"SEO"}},8138:function(e,t,r){"use strict";r.d(t,{Z:function(){return b}});var i={};r.r(i),r.d(i,{debounce:function(){return s},get:function(){return n},isEqual:function(){return u},isFunction:function(){return l},isNumber:function(){return c},pick:function(){return a},throttle:function(){return o}});const a=(e,t)=>{const r={};return Object.entries(e||{}).forEach((([e,i])=>{t.indexOf(e)>=0&&(r[e]=i)})),r},o=(e,t)=>{let r=!1,i=!1;return(...a)=>{r?i=!0:(i=!1,e.apply(void 0,a),r=!0,setTimeout((()=>{i&&e.apply(void 0,a),r=!1}),t))}},s=(e,t)=>{let r;return(...i)=>{clearTimeout(r),r=setTimeout((()=>{e.apply(void 0,i)}),t)}},n=(e,t,r)=>{const i=String.prototype.split.call(t,/[,[\].]+?/).filter(Boolean).reduce(((e,t)=>null!=e?e[t]:e),e);return void 0===i||i===e?r:i},l=e=>"function"==typeof e,u=(e,t)=>{try{return JSON.stringify(e)===JSON.stringify(t)}catch(e){return!1}},c=e=>!isNaN(parseFloat(e))&&isFinite(e);var h=r(26219),m=r(1230),p=r(27032);const d=new class{constructor(){this.setViewMode=this.setViewMode.bind(this),this.isSiteMode=this.isSiteMode.bind(this),this.isEditMode=this.isEditMode.bind(this),this.isPreviewMode=this.isPreviewMode.bind(this),this.isSEOMode=this.isSEOMode.bind(this),this.setDeviceType=this.setDeviceType.bind(this),this.isDeviceTypeDesktop=this.isDeviceTypeDesktop.bind(this),this.isDeviceTypeMobile=this.isDeviceTypeMobile.bind(this),this.isDeviceTypeTablet=this.isDeviceTypeTablet.bind(this),this.isDeviceTypeTouch=this.isDeviceTypeTouch.bind(this),this._viewMode=m.Z.SITE,this._deviceType=p.Z.DESKTOP}setViewMode(e){this._viewMode=e}setDeviceType(e){this._deviceType=e}isDeviceTypeMobile(){return this._deviceType===p.Z.MOBILE}isDeviceTypeTablet(){return this._deviceType===p.Z.TABLET}isDeviceTypeDesktop(){return this._deviceType===p.Z.DESKTOP}isDeviceTypeTouch(){return this.isDeviceTypeMobile()||this.isDeviceTypeTablet()}isSiteMode(){return this._viewMode===m.Z.SITE}isEditMode(){return this._viewMode===m.Z.EDIT}isPreviewMode(){return this._viewMode===m.Z.PREVIEW}isSEOMode(){return this._viewMode===m.Z.SEO}},y=(d.isSiteMode,d.isEditMode),g=d.isPreviewMode,_=(d.isSEOMode,d.isDeviceTypeMobile),v=(d.isDeviceTypeTablet,d.isDeviceTypeDesktop,d.isDeviceTypeTouch);var P=r(99127),f=r(24641);var b=new class{constructor(){this._cache={},this._hash2int={},this._params={},Object.assign(this,i)}shouldUseCache(){return!y()&&!g()&&!this.isSSR()}isUndefined(e){return void 0===e}uniqueBy(e,t){return e.filter(((e,r,i)=>i.map((e=>e[t])).indexOf(e[t])===r))}inRange(e,t,r=t){if(0===t)return-1;for(;e<0;)e+=t;for(;e>r;)e-=t;return e}sliceArrayWithRange(e,t,r){return Array(r-t).fill(0).map(((r,i)=>{const a=t+i;return e[this.inRange(a,e.length,e.length-1)]}))}sliceArrayIfAvailable(e,t,r){let i=Math.max(t,0),a=Math.min(r,e.length);return i>t&&(a=Math.min(a+(i-t),e.length)),a{i=t.split("="),i[0]===e&&(r=decodeURIComponent(i[1]))})),!r){const t=decodeURIComponent(a.pathname).split("?")[1];if(!t)return"";t.split("&").forEach((t=>{i=t.split("="),i[0]===e&&(r=decodeURIComponent(i[1]))}))}return this._params[e]=r,r}catch(e){return!1}}stripSlashes(e){let t="";return"string"==typeof e&&(t=e.replace(/\\\//g,"/").replace(/\\'/g,"'").replace(/\\"/g,'"').replace(/\\0/g,"\0").replace(/\\\\/g,"\\")),t}parseStringObject(e){if("string"!=typeof e)return e;const t=this.stripSlashes(e);if("string"==typeof e&&/^[\],:{}\s]*$/.test(t.replace(/\\["\\/bfnrtu]/g,"@").replace(/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+-]?\d+)?/g,"]").replace(/(?:^|:|,)(?:\s*\[)+/g,"")))try{return JSON.parse(t)}catch(e){}return t}hashCode(e){let t,r,i=0;if(0===e.length)return i;for(t=0;t{const e=this.parseGetParam("deviceType")||h.Z.deviceType,t="true"===this.parseGetParam("showMobileView"),r=_();return!!t||(e?String(e).toLowerCase().indexOf("mobile")>=0:r||void 0)}))}isUserAgentMobile(){try{const e=()=>{let e=!1;var t;return t=navigator.userAgent||navigator.vendor||h.Z.opera,(/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|pixel|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino/i.test(t)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw-(n|u)|c55\/|capi|ccwa|cdm-|cell|chtm|cldc|cmd-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc-s|devi|dica|dmob|do(c|p)o|ds(12|-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(-|_)|g1 u|g560|gene|gf-5|g-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd-(m|p|t)|hei-|hi(pt|ta)|hp( i|ip)|hs-c|ht(c(-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i-(20|go|ma)|i230|iac( |-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|-[a-w])|libw|lynx|m1-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|-([1-8]|c))|phil|pire|pl(ay|uc)|pn-2|po(ck|rt|se)|prox|psio|pt-g|qa-a|qc(07|12|21|32|60|-[2-7]|i-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h-|oo|p-)|sdk\/|se(c(-|0|1)|47|mc|nd|ri)|sgh-|shar|sie(-|m)|sk-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h-|v-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl-|tdg-|tel(i|m)|tim-|t-mo|to(pl|sh)|ts(70|m-|m3|m5)|tx-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas-|your|zeto|zte-/i.test(t.substr(0,4)))&&(e=!0),e};return this.getOrPutFromCache("isUserAgentMobile",e)}catch(e){return!1}}isMobile(){return this.getOrPutFromCache("isMobile",(()=>{const e=this.isMobileByProps(),t=this.isUserAgentMobile();return this.isUndefined(e)?t:e}))}isTouch(){return this.getOrPutFromCache("isTouch",(()=>{var e;const t=v(),r=(null===(e=h.Z.navigator)||void 0===e?void 0:e.maxTouchPoints)>0||"ontouchstart"in h.Z.document.documentElement;return this.isUndefined(t)?r:t}))}isTest(){try{return h.Z.isTest}catch(e){return!1}}isLocal(){try{const e=h.Z.location.hostname;return"local.wix.com"===e||(e.indexOf("localhost")>=0||"true"===this.parseGetParam("debug"))}catch(e){return!1}}isDev(){return this.getOrPutFromCache("isDev",(()=>this.shouldDebug("ph_local")||this.isOOI()&&!1||"true"===(this.safeLocalStorage()||{}).forceDevMode))}isVerbose(){return!this.isTest()&&"true"===(this.safeLocalStorage()||{}).forceDevMode}isStoreGallery(){return this.getOrPutFromCache("isStoreGallery",(()=>{try{return h.Z.location.search.toLowerCase().indexOf("isstore")>-1}catch(e){return this.isDev()&&console.error("cant find window",e),!1}}))}isSSR(){return void 0!==r.g&&void 0===(null===r.g||void 0===r.g?void 0:r.g.window)}isOOI(){return this.isSSR()||"undefined"!=typeof top&&"undefined"!=typeof self&&(top===self||self.location.origin.includes("editor.wix.com"))}generateUUID(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(e=>{const t=Math.floor(16*Math.random())||0;return"x"===e?t.toString(16):e}))}isExternalUrl(e){return/(^https?)|(^data)|(^blob)/.test(e)}isiOS(){return this.getOrPutFromCache("isiOS",(()=>{try{return/iPad|iPhone|iPod/.test(navigator.userAgent)&&!h.Z.MSStream}catch(e){return!1}}))}isiPhone(){return this.getOrPutFromCache("isiPhone",(()=>{try{return/iPhone/.test(navigator.userAgent)&&!h.Z.MSStream}catch(e){return!1}}))}isLandscape(){return this.getOrPutFromCache("isLandscape",(()=>{if(!this.isMobile())return!1;try{if(this.isUndefined(h.Z.orientation)){const e=h.Z.matchMedia("(orientation: landscape)");return!(!e||!0!==e.matches)}return 90===h.Z.orientation||-90===h.Z.orientation}catch(e){return!1}}))}safeLocalStorage(){try{return localStorage||h.Z}catch(e){return h.Z}}shouldDebug(e){try{return!!this.safeLocalStorage()[e]||(h.Z.debugApp||"").indexOf(e)>=0||(this.parseGetParam("debugApp")||"").indexOf(e)>=0}catch(e){return!1}}deviceHasMemoryIssues(){return this.isiOS()}getTabIndex(e){const t=["currentGalleryItem","loadMoreButton","slideshowNext","slideshowPrev","currentThumbnail","slideshowLove","slideshowShare","cartIcon","cartClose","cartFrame","fullscreenClose","fullscreenNext","fullscreenPrev","fullscreenInfo","fullscreenLink","fullscreenProvider","fullscreenCartButton","fullscreenCheckout","fullscreenExpand","fullscreenVideoPlay","fullscreenVideoBar","fullscreenVideoMute","fullscreenVideoVolume","fullscreenCartIcon","fullscreenDownload","fullscreenLove","fullscreenShare"].indexOf(e)+1;return t>=0&&this.isOOI()?0:t||-1}setStateAndLog(e,t,r,i){if(this.isVerbose()){console.log(`State Change Called (${t})`,r);const a=Object.assign({},e.state);e.setState(r,(()=>{const r=Object.assign({},e.state),o=this.printableObjectsDiff(a,r,"state");Object.keys(o).length>0&&console.log(`State Change Completed (${t})`,o),this.isFunction(i)&&i.bind(e)()}))}else e.setState(r,(()=>{this.isFunction(i)&&i.bind(e)()}))}printableObjectsDiff(e,t,r=""){const i=e=>(""===e?e="''":this.isUndefined(e)&&(e="undefined"),String(e)),a=(e={},t={},r,o=1)=>{if(o>3)return{};return Object.entries(e).reduce(((e,[s,n])=>(this.isEqual(n,t[s])||(Array.isArray(t[s])?(n.length!==t[s].length&&(e[s+".length"]="["+n.length+"] => ["+t[s].length+"]"),e=Object.assign(e,a(n,t[s],(r?r+".":"")+s,o+1))):"object"==typeof t[s]?e=Object.assign(e,a(n,t[s],(r?r+".":"")+s,o+1)):e[(r?r+".":"")+s]=i(n)+" => "+i(t[s])),e)),{})};return a(e,t,r,1)}getScreenWidth(){if(g()&&this.isMobile())return 320;if(this.isTest())return 1920;try{return this.isLandscape()?Math.max(h.Z.screen.width,h.Z.screen.height):h.Z.screen.width}catch(e){return 1920}}getScreenHeight(){if(this.isTest())return 1200;try{return this.isLandscape()?Math.min(h.Z.screen.width,h.Z.screen.height):h.Z.screen.height}catch(e){return 1200}}getWindowWidth(){try{return h.Z.innerWidth||980}catch(e){return 980}}getMobileEnabledClick(e){return this.isMobile()?{onTouchEnd:e}:{onClick:e}}getTopUrlParam(e){if(this.isUndefined(this._cache.params)&&(this._cache.params={}),this.isUndefined(this._cache.params[e]))try{this._cache.params[e]=top.location.search.replace("?","").split("&").map((t=>{const r=t.split("=");return r[0]===e&&r[1]||""})).join("")}catch(t){this._cache.params[e]=!1}return this._cache.params[e]}scrollTo(e,t,r,i,a){this.isMobile()&&(r=0);const o=i?e.scrollLeft:e.scrollTop,s=t-o;let n=0;const l=()=>{n+=20;const t=((e,t,r,i)=>0===i?r+t:(e/=i/2)<1?r/2*e*e+t:-r/2*(--e*(e-2)-1)+t)(n,o,s,r);n"object"!=typeof t&&-1===String(e).indexOf("Expand")&&-1===String(e).indexOf("Color"))).map((([e,t])=>`${e}=${encodeURI(t)}`)).join("&");console.log("Gallery Playground link:",`https://pro-gallery.surge.sh?${t}`)}}catch(e){console.error(e)}}isSingleItemHorizontalDisplay(e){return e.scrollDirection===P.Z[f.Z.layoutParams.structure.scrollDirection].HORIZONTAL&&1===e[f.Z.layoutParams.groups.groupSize]&&e[f.Z.layoutParams.crop.enable]&&1===e[f.Z.layoutParams.crop.ratios].length&&"100%/100%"===e[f.Z.layoutParams.crop.ratios][0]}getAriaAttributes({proGalleryRole:e,proGalleryRegionLabel:t}){const r="application"===e?"gallery application":"region",i={role:e||"region","aria-label":t};return(e||"region")!==r&&(i["aria-roledescription"]=r),i}focusGalleryElement(e){e.focus()}isMeaningfulString(e){return"string"==typeof e&&!!e.trim().length}isHeightSetByGallery(e){return e[f.Z.layoutParams.structure.scrollDirection]===P.Z[f.Z.layoutParams.structure.scrollDirection].VERTICAL&&!e[f.Z.behaviourParams.gallery.vertical.loadMore.enable]}}},26219:function(e,t,r){"use strict";r.d(t,{Z:function(){return p}});const i=()=>({}),a=2560,o=1440,s={y:0,x:0,width:a,height:o,innerWidth:a,innerHeight:o,outerWidth:a,outerHeight:o,clientWidth:a,clientHeight:o},n=Object.assign(Object.assign({},s),{getBoundingClientRect:()=>s}),l=Object.assign({addEventListener:i,removeEventListener:i,createEvent:i,getElementById:()=>n,getElementsByClassName:()=>[n],getElementsByTagName:()=>[n],querySelector:()=>[n],documentElement:n,activeElement:n,style:s},s);l.body=l;const u=Object.assign(Object.assign({},s),{scrollTop:0,scrollY:0}),c=Object.assign({isMock:!0,isSSR:!0,orientation:0,devicePixelRatio:1,addEventListener:i,removeEventListener:i,createEvent:i,CustomEvent:i,screen:s,open:i,petri:{},search:{},location:{href:"http://mock.wix.com/",protocol:"http:",host:"mock.wix.com",hostname:"mock.wix.com",port:"",pathname:"/",search:"",hash:""},postMessage:i,requestAnimationFrame:i,dispatchEvent:i,document:l,getComputedStyle:i,localStorage:{},frames:[]},u),h=new Map(Object.keys(u).map((e=>[e,u[e]])));c.parent=c;var m=c;var p=(new class{constructor(){this.shouldUseMock=!0,this.initProxyWindow=this.initProxyWindow.bind(this),this.windowIsAvailable()?this.initProxyWindow():this.initMockWindow()}windowIsAvailable(){try{return"undefined"!=typeof window}catch(e){return!1}}initProxyWindow(){const e={get:function(e,t){return h.has(t)&&this.shouldUseMock?h.get(t):e[t]}.bind(this),set:function(e,t,r){return Reflect.set(e,t,r)}},t=new Proxy(window,e),r={get:function(e,r){return t.proGalleryCustomProps.has(r)||"function"!=typeof t[r]?t[r]:t[r].bind(window)},set:function(e,r,i){return t.proGalleryCustomProps.add(r),Reflect.set(t,r,i)}};t.proGalleryCustomProps||(t.proGalleryCustomProps=new Set),this.window=new Proxy({},r)}initMockWindow(){this.window=m,this.window.mockInstanceId=Math.floor(1e5*Math.random())}stopUsingMock(){this.shouldUseMock=!1}get shouldUseMock(){return this._shouldUseMock}set shouldUseMock(e){this._shouldUseMock=e}}).window},24641:function(e,t){"use strict";t.Z={layoutParams:{groups:{density:"layoutParams_groups_density",groupByOrientation:"layoutParams_groups_groupByOrientation",numberOfGroupsPerRow:"layoutParams_groups_numberOfGroupsPerRow",allowedGroupTypes:"layoutParams_groups_allowedGroupTypes",repeatingGroupTypes:"layoutParams_groups_repeatingGroupTypes",groupSize:"layoutParams_groups_groupSize"},crop:{method:"layoutParams_crop_method",alignment:"layoutParams_crop_alignment",enable:"layoutParams_crop_enable",enableSmartCrop:"layoutParams_crop_enableSmartCrop",cropOnlyFill:"layoutParams_crop_cropOnlyFill",ratios:"layoutParams_crop_ratios"},structure:{galleryLayout:"layoutParams_structure_galleryLayout",galleryRatio:{value:"layoutParams_structure_galleryRatio_value",includeExternalInfo:"layoutParams_structure_galleryRatio_includeExternalInfo"},enableStreching:"layoutParams_structure_enableStreching",gallerySpacing:"layoutParams_structure_gallerySpacing",itemSpacing:"layoutParams_structure_itemSpacing",scrollDirection:"layoutParams_structure_scrollDirection",numberOfColumns:"layoutParams_structure_numberOfColumns",numberOfGridRows:"layoutParams_structure_numberOfGridRows",responsiveMode:"layoutParams_structure_responsiveMode",columnRatios:"layoutParams_structure_columnRatios",scatter:{randomScatter:"layoutParams_structure_scatter_randomScatter",manualScatter:"layoutParams_structure_scatter_manualScatter"},layoutOrientation:"layoutParams_structure_layoutOrientation",groupsOrder:"layoutParams_structure_groupsOrder"},thumbnails:{enable:"layoutParams_thumbnails_enable",position:"layoutParams_thumbnails_position",spacing:"layoutParams_thumbnails_spacing",marginToGallery:"layoutParams_thumbnails_marginToGallery",size:"layoutParams_thumbnails_size",alignment:"layoutParams_thumbnails_alignment"},navigationArrows:{enable:"layoutParams_navigationArrows_enable",size:"layoutParams_navigationArrows_size",padding:"layoutParams_navigationArrows_padding",position:"layoutParams_navigationArrows_position",verticalAlignment:"layoutParams_navigationArrows_verticalAlignment",type:"layoutParams_navigationArrows_type",container:{type:"layoutParams_navigationArrows_container_type",borderRadius:"layoutParams_navigationArrows_container_borderRadius",backgroundColor:"layoutParams_navigationArrows_container_backgroundColor"},mouseCursorContainerMaxWidth:"layoutParams_navigationArrows_mouseCursorContainerMaxWidth"},info:{sizeUnits:"layoutParams_info_sizeUnits",width:"layoutParams_info_width",height:"layoutParams_info_height",spacing:"layoutParams_info_spacing",layout:"layoutParams_info_layout",border:{width:"layoutParams_info_border_width",color:"layoutParams_info_border_color",radius:"layoutParams_info_border_radius"},placement:"layoutParams_info_placement"},targetItemSize:{unit:"layoutParams_targetItemSize_unit",value:"layoutParams_targetItemSize_value",minimum:"layoutParams_targetItemSize_minimum"}},behaviourParams:{item:{clickAction:"behaviourParams_item_clickAction",video:{speed:"behaviourParams_item_video_speed",volume:"behaviourParams_item_video_volume",loop:"behaviourParams_item_video_loop",playTrigger:"behaviourParams_item_video_playTrigger",enablePlayButton:"behaviourParams_item_video_enablePlayButton",enableThumbnailsPlayButton:"behaviourParams_item_video_enableThumbnailsPlayButton",enableControls:"behaviourParams_item_video_enableControls",enablePlaceholder:"behaviourParams_item_video_enablePlaceholder"},threeDimensionalScene:{transform:{rotation:"behaviourParams_item_threeDimensionalScene_transform_rotation",scale:"behaviourParams_item_threeDimensionalScene_transform_scale",position:"behaviourParams_item_threeDimensionalScene_transform_position"},controls:{enableZoom:"behaviourParams_item_threeDimensionalScene_controls_enableZoom",enableRotate:"behaviourParams_item_threeDimensionalScene_controls_enableRotate",enablePan:"behaviourParams_item_threeDimensionalScene_controls_enablePan",enableAutoRotate:"behaviourParams_item_threeDimensionalScene_controls_enableAutoRotate"},enablePlayButton:"behaviourParams_item_threeDimensionalScene_enablePlayButton",enableThumbnailsPlayButton:"behaviourParams_item_threeDimensionalScene_enableThumbnailsPlayButton",playTrigger:"behaviourParams_item_threeDimensionalScene_playTrigger"},overlay:{hoveringBehaviour:"behaviourParams_item_overlay_hoveringBehaviour",hoverAnimation:"behaviourParams_item_overlay_hoverAnimation",position:"behaviourParams_item_overlay_position",size:"behaviourParams_item_overlay_size",sizeUnits:"behaviourParams_item_overlay_sizeUnits",padding:"behaviourParams_item_overlay_padding",backgroundColor:"behaviourParams_item_overlay_backgroundColor"},content:{hoverAnimation:"behaviourParams_item_content_hoverAnimation",placementAnimation:"behaviourParams_item_content_placementAnimation",loader:"behaviourParams_item_content_loader",magnificationValue:"behaviourParams_item_content_magnificationValue",tiltAngleValue:"behaviourParams_item_content_tiltAngleValue"},secondaryMedia:{trigger:"behaviourParams_item_secondaryMedia_trigger",behaviour:"behaviourParams_item_secondaryMedia_behaviour"}},gallery:{layoutDirection:"behaviourParams_gallery_layoutDirection",blockContextMenu:"behaviourParams_gallery_blockContextMenu",scrollAnimation:"behaviourParams_gallery_scrollAnimation",enableIndexingShareLinks:"behaviourParams_gallery_enableIndexingShareLinks",vertical:{loadMore:{enable:"behaviourParams_gallery_vertical_loadMore_enable",amount:"behaviourParams_gallery_vertical_loadMore_amount",text:"behaviourParams_gallery_vertical_loadMore_text"}},horizontal:{enableScrollSnap:"behaviourParams_gallery_horizontal_enableScrollSnap",slideAnimation:"behaviourParams_gallery_horizontal_slideAnimation",slideTransition:"behaviourParams_gallery_horizontal_slideTransition",blockScroll:"behaviourParams_gallery_horizontal_blockScroll",navigationDuration:"behaviourParams_gallery_horizontal_navigationDuration",loop:"behaviourParams_gallery_horizontal_loop",autoSlide:{behaviour:"behaviourParams_gallery_horizontal_autoSlide_behaviour",interval:"behaviourParams_gallery_horizontal_autoSlide_interval",pauseOnHover:"behaviourParams_gallery_horizontal_autoSlide_pauseOnHover",speed:"behaviourParams_gallery_horizontal_autoSlide_speed"},slideshowInfo:{buttonsAlignment:"behaviourParams_gallery_horizontal_slideshowInfo_buttonsAlignment",enableCounter:"behaviourParams_gallery_horizontal_slideshowInfo_enableCounter",enablePlayButton:"behaviourParams_gallery_horizontal_slideshowInfo_enablePlayButton"}}}},stylingParams:{arrowsColor:"stylingParams_arrowsColor",itemShadowBlur:"stylingParams_itemShadowBlur",itemShadowDirection:"stylingParams_itemShadowDirection",itemShadowOpacityAndColor:"stylingParams_itemShadowOpacityAndColor",itemShadowSize:"stylingParams_itemShadowSize",itemEnableShadow:"stylingParams_itemEnableShadow",itemBorderRadius:"stylingParams_itemBorderRadius",itemBorderWidth:"stylingParams_itemBorderWidth",itemBorderColor:"stylingParams_itemBorderColor",itemResolutionMode:"stylingParams_itemResolutionMode"}}},77997:function(e,t,r){"use strict";r.d(t,{Z:function(){return Vt}});var i=r(92712),a=r(5329),o=r.n(a),s=r(87352),n=r(30972),l=r(93657);const u=new class{constructor(){this._hash2int={}}stripSlashes(e){let t="";return"string"==typeof e&&(t=e.replace(/\\\//g,"/").replace(/\\'/g,"'").replace(/\\"/g,'"').replace(/\\0/g,"\0").replace(/\\\\/g,"\\")),t}parseStringObject(e){if("string"!=typeof e)return e;const t=this.stripSlashes(e);if("string"==typeof e&&/^[\],:{}\s]*$/.test(t.replace(/\\["\\\/bfnrtu]/g,"@").replace(/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,"]").replace(/(?:^|:|,)(?:\s*\[)+/g,"")))try{return JSON.parse(t)}catch(e){}return t}hashToInt(e,t,r){let i=0;if(void 0===e||0===e.length)return i;if(!this._hash2int[e]){for(let t=0;t{void 0===r[e]&&(r[e]=t[e])})),r}(e)}convertContainer(e,t){const r=Object.assign({bounds:{}},e);return e.width>=0&&!(e.galleryWidth>=0)&&(r.galleryWidth=e.width+2*((t[l.Z.layoutParams.structure.itemSpacing]/2||0)-(t[l.Z.layoutParams.structure.gallerySpacing]||0)),delete r.width),e.height>=0&&!(e.galleryHeight>=0)&&(r.galleryHeight=e.height+((t[l.Z.layoutParams.structure.itemSpacing]/2||0)-(t[l.Z.layoutParams.structure.gallerySpacing]||0)),delete r.height),t.externalInfoHeight>=0&&"HORIZONTAL"===t[l.Z.layoutParams.structure.scrollDirection]&&(r.galleryHeight-=t.externalInfoHeight),r}};class c{constructor(e){if(this.style={},this.visibility={},(e=e||{}).dto||(console.error("Item has no DTO",e),e.dto={}),this.config=e,this.dto=e.dto,this.idx=e.idx,this.inGroupIdx=e.inGroupIdx,this.container=e.container,this.cubeType="FILL",e.styleParams){const{styleParams:t}=e;this.cubeType=t[l.Z.layoutParams.crop.method],this.cubeImages=t[l.Z.layoutParams.crop.enable],this._cropRatio=t[l.Z.layoutParams.crop.ratios],this.rotatingCropRatios=t[l.Z.layoutParams.crop.ratios].length>1&&t[l.Z.layoutParams.crop.ratios],this.smartCrop=t[l.Z.layoutParams.crop.enableSmartCrop],this.cropOnlyFill=t[l.Z.layoutParams.crop.cropOnlyFill],this.imageMargin=t[l.Z.layoutParams.structure.itemSpacing],this.gallerySpacing=t[l.Z.layoutParams.structure.gallerySpacing],this.scatter=t[l.Z.layoutParams.structure.scatter.randomScatter],this.rotatingScatter=t[l.Z.layoutParams.structure.scatter.manualScatter],this.smartCrop=t[l.Z.layoutParams.crop.enableSmartCrop],this.useMaxDimensions=!t[l.Z.layoutParams.structure.enableStreching]&&"text"!==this.itemType,this.cubeFitPosition=t[l.Z.layoutParams.crop.alignment]}this._groupOffset={top:0,left:0,right:0,bottom:0},this._group={},this.calcPinOffset=()=>0,this.resize(1)}fixMetadataVerticalVideoRatio(e){if(e.qualities&&e.qualities[0]){const{qualities:t}=e,{height:r,width:i}=t[t.length-1];e.height=r,e.width=i}}resize(e){let t=1;if(!1!==e){if(e>0)t=e;else if("object"==typeof e)if(e.width){t=Math.max(1,e.width)/this.width}else if(e.height){t=Math.max(1,e.height)/this.height}return this.width*=t,this.height*=t,this.resized=!0,this}}pinToCorner(e,t=!1){const r=e.indexOf("top")>=0,i=e.indexOf("left")>=0;this.style.top=r?0:"auto",this.style.bottom=r?"auto":0,this.style.left=i?0:"auto",this.style.right=i?"auto":0,this.pin=e,this.isPinnedTop=r,this.isPinnedLeft=i,this.pinAfter=t,this.pinAfterType=r?"top":i?"left":"",this.calcPinOffset=(e,t)=>{if(this.pinAfter){if(this.pin===t){const e=this.imageMargin/2;return"top"===t?this.pinAfter.height+2*e:"left"===t?this.pinAfter.width+2*e:0}return 0}return 0}}setPosition(e){this.style.position=e}getPosition(e){return parseInt(e,10)>=0?e:"auto"}calcScatter(e){const t=this.imageMargin/2,r=this.gallerySpacing,i=e.left>0?t:r,a=this.container.galleryWidth-e.right>2*t?t:r,o=e.top>0?t:r,s=this.container.galleryHeight-e.bottom>2*t?t:r;if(!(this.rotatingScatter.length>0)){if(this.scatter>0){const t=this.scatter/100*.4;let r=u.hashToRandomInt(this.seed+e.right+"x",-i,a);r*=this.scatter/100,r*=1-t,r+=(r>0?t*a:t*i)*Math.sign(r),r=Math.round(r);let n=u.hashToRandomInt(this.seed+e.right+"y",-o,s);return n*=this.scatter/100,n*=1-t,n+=(n>0?t*s:t*o)*Math.sign(n),n=Math.round(n),{x:r,y:n}}return{x:0,y:0}}try{const e=this.rotatingScatter.split(","),[t,r]=e[this.idx%e.length].split("/").map((e=>parseInt(e))).map((e=>e/100));return{x:t*(t>0?a:i),y:r*(r>0?s:o)}}catch(e){console.error("Cannot calculate rotating scatter",e)}}get top(){return this.getPosition(this.style.top)}get left(){return this.getPosition(this.style.left)}get right(){return this.getPosition(this.style.right)}get bottom(){return this.getPosition(this.style.bottom)}set group(e){Object.assign(this._group,e)}get group(){return this._group}set groupOffset(e){Object.assign(this._groupOffset,e)}get offset(){var e;const t={top:this._groupOffset.top+(this.isPinnedTop?this.calcPinOffset(this._group.height,"top"):this._group.height-this.outerHeight)||0,left:this._groupOffset.left+(this.isPinnedLeft?this.calcPinOffset(this._group.width,"left"):this._group.width-this.outerWidth)||0},{fixTop:r=0,fixLeft:i=0,fixRight:a=0,fixBottom:o=0}=this.dimensions;if(t.innerTop=r,t.innerLeft=i,t.innerRight=a,t.innerBottom=o,t.right=t.left+this.width,t.bottom=t.top+this.height,this.scatter>0||(null===(e=this.rotatingScatter)||void 0===e?void 0:e.length)>0){const{x:e,y:r}=this.calcScatter(t);t.left+=e,t.top+=r,t.right=t.left+this.width,t.bottom=t.top+this.height}return t}get id(){return this.dto.id||this.dto.photoId||this.dto.itemId}set id(e){this.dto.itemId=this.dto.photoId=this.dto.id=e}get hash(){return this.dto.hash||this.dto.mediaUrl||this.dto.id}get seed(){return this.dto.seed||u.hashToInt(this.hash)}get metadata(){return this.dto.metadata||this.dto.metaData||{}}get itemType(){return this.metadata.type||"image"}get maxWidth(){return this.dto.width||this.dto.w}set maxWidth(e){this.dto.width=e}get outerWidth(){return this.width+2*this.margins}get infoWidth(){return this.Group?this.Group.infoWidth:0}get orgWidth(){return this.style.orgWidth||this.dto.width||this.dto.w||1}get width(){let e;return e=this.cubeImages&&this.ratio>=this.cropRatio?this.style.cubedWidth||this.orgHeight*this.cropRatio:this.orgWidth,Math.max(e,1)}set width(e){this.style.cubedWidth=this.style.orgWidth=this.style.width=Math.max(1,e);const{fixLeft:t=0,fixRight:r=0}=this.dimensions;this.style.innerWidth=this.style.width-t-r}get outerHeight(){return this.height+2*this.margins}get orgHeight(){return this.style.orgHeight||this.dto.height||this.dto.h||1}get height(){let e;return e=this.cubeImages&&this.ratio{e?(t=this.useMaxDimensions?Math.min(this.width,this.maxWidth):this.width,r=t/i):(r=this.useMaxDimensions?Math.min(this.height,this.maxHeight):this.height,t=r*i)},a=this.ratio>=this.cropRatio;e?i(a,this.ratio):this.useMaxDimensions&&(this.width>this.maxWidth||this.height>this.maxHeight)&&(this.cubeImages?i(!a,this.cropRatio):i(!a,this.ratio));let o={fixTop:(this.height-r)/2,fixLeft:(this.width-t)/2,fixRight:(this.width-t)/2,fixBottom:(this.height-r)/2};switch(this.cubeFitPosition){case"TOP":o.fixTop=0,o.fixBottom*=2;break;case"BOTTOM":o.fixTop*=2,o.fixBottom=0;break;case"LEFT":o.fixLeft=0,o.fixRight*=2;break;case"RIGHT":o.fixLeft*=2,o.fixRight=0}return o}get cropRatio(){let e;if(this.rotatingCropRatio)e=this.rotatingCropRatio;else if(this.rotatingCropRatios&&this.rotatingCropRatios.length>1){const t=this.rotatingCropRatios;e=this.rotatingCropRatio=t[this.idx%t.length]}if(e||"function"!=typeof this._cropRatio||(e=this._cropRatio()),!e&&this.cropOnlyFill&&"FIT"===this.cubeType&&(e=this.ratio),e||(e=this._cropRatio&&this._cropRatio[0]||this.ratio),null!==this.dynamicCropRatios&&"string"==typeof e){if(!this.dynamicCropRatios){const t=/^\d*\.?\d*(%|px)\/\d*\.?\d*(%|px)$/.exec(e);this.dynamicCropRatios=t?e.split("/").map(((e,t)=>e.indexOf("%")>0?{type:"%",val:parseFloat(e.replace("%",""))/100,dim:0===t?"galleryWidth":"galleryHeight"}:{type:"px",val:parseInt(e.replace("px",""))})):null}if(this.dynamicCropRatios){const t=this.dynamicCropRatios.map((e=>{if("%"===e.type){const t=this.container[e.dim]+("galleryHeight"===e.dim?this.imageMargin/2:0);return e.val*t-this.imageMargin}return e.val}));e=t[0]/t[1]}}return e=Number(e),!0===this.smartCrop&&(e=this.isPortrait?Math.min(e,1/e):Math.max(e,1/e)),"MIN"===this.cubeType?e=Math.max(e,this.orgRatio):"MAX"===this.cubeType&&(e=Math.min(e,this.orgRatio)),e}set cropRatio(e){"number"==typeof this._cropRatio&&(this._cropRatio=e,this.style.cubedHeight=this.style.cubedWidth=0)}get orientation(){return this.ratio<.999?"portrait":"landscape"}get isPortrait(){return"portrait"===this.orientation}get isLandscape(){return"landscape"===this.orientation}get ratio(){return this.orgRatio||(this.orgRatio=this.orgWidth/this.orgHeight),this.orgRatio}set ratio(e){this.orgRatio=e}get roundedStyle(){return Object.assign(Object.assign({},this.style),{width:Math.round(this.style.width),height:Math.round(this.style.height)})}get scheme(){return{id:this.id,idx:this.idx,inGroupIdx:this.inGroupIdx,dto:this.dto,type:this.type,style:this.style,roundedStyle:this.roundedStyle,width:this.width,maxWidth:this.maxWidth,outerWidth:this.outerWidth,infoWidth:this.infoWidth,margins:this.margins,ratio:this.ratio,dimensions:this.dimensions,cropRatio:this.cropRatio,isCropped:this.cubeImages,cropType:this.cubeType,height:this.height,maxHeight:this.maxHeight,outerHeight:this.outerHeight,infoHeight:this.infoHeight,group:this.group,offset:this.offset,groupOffset:this._groupOffset,orientation:this.orientation,isPortrait:this.isPortrait,isLandscape:this.isLandscape,visibility:this.visibility}}}class h{constructor(e){this.uniqueId=n.Z.generateUUID(),this.isGalleryItem=!0,this.createdBy=e.createdBy,this.createUrl=this.createUrl.bind(this),this.createMagnifiedUrl=this.createMagnifiedUrl.bind(this),this.createSecondMediaItemIfNeeded(e),this.update(e)}createSecondMediaItemIfNeeded(e){var t;(null===(t=e.dto)||void 0===t?void 0:t.secondaryMedia)&&(this.secondaryMediaItem=new h(this.mapItemConfig(e)))}updateSecondaryMedia(e){this.secondaryMediaItem&&this.secondaryMediaItem.update(this.mapItemConfig(e))}mapItemConfig(e){const t={};return Object.assign(t,e.dto.secondaryMedia,e.dto.secondaryMedia.metadata),Object.assign(Object.assign({},e),{dto:t,scheme:Object.assign(Object.assign({},e.scheme),{maxHeight:t.height,maxWidth:t.width})})}update(e){if(this.createMediaUrl=e.createMediaUrl,e.dto&&e.dto.dto&&(e.dto=e.dto.dto,n.Z.isDev()&&console.warn("Item core is created with already existing item core")),this.dto=Object.assign({},e.dto),e.scheme)this.processScheme(e.scheme);else{const e={};Object.assign(e,this.dto,this.metadata),this.processScheme(new c({dto:e}).scheme)}if(this.dto){const e=this.dto.metaData||this.dto.metadata;e&&(this.dto.metaData=n.Z.parseStringObject(e))}this.sharpParams=Object.assign({},e.sharpParams),this.sharpParams.quality||(this.sharpParams.quality=90),this.sharpParams.usm||(this.sharpParams.usm={}),this.thumbnailSize=e.thumbnailSize||120,this.resetUrls(),this.updateSharpParams(),this.updateSecondaryMedia(e)}processScheme(e){this.id=e.id,this.idx=e.idx,this.type=e.type,this.style=e.style,this.width=e.width,this.maxWidth=e.maxWidth,this.infoWidth=e.infoWidth,this.height=e.height,this.maxHeight=e.maxHeight,this.infoHeight=e.infoHeight,this.margins=e.margins,this.ratio=e.ratio,this.cropRatio=e.cropRatio,this.cubeImages=e.isCropped,this.cubeType=e.cropType||s.Z.resizeMethods.FILL,this.offset=e.offset,this.group=e.group,this.orientation=e.orientation,this.visibility=e.visibility}renderProps(e){const t=Object.assign({ratio:this.ratio,bgColor:this.bgColor,maxWidth:this.maxWidth,maxHeight:this.maxHeight,infoWidth:this.infoWidth,infoHeight:this.infoHeight,orientation:this.orientation},this.style),r=Object.assign({className:"image",key:this.key,idx:this.idx,photoId:this.photoId,id:this.id,hash:this.id,html:this.html,type:this.type,isVideoPlaceholder:this.isVideoPlaceholder,videoPlaceholderUrl:this.videoPlaceholderUrl,url:this.url,alt:this.alt,htmlContent:this.htmlContent,directLink:this.directLink,directShareLink:this.directShareLink,linkUrl:this.linkUrl,linkType:this.linkType,linkOpenType:this.linkOpenType,linkData:this.linkData,title:this.title,fileName:this.fileName,description:this.description,createUrl:this.createUrl,createMagnifiedUrl:this.createMagnifiedUrl,cubeImages:this.cubeImages,cubeType:this.cubeType,cropRatio:this.cropRatio,isTransparent:this.isTransparent,offset:this.offset,style:t,isDemo:this.isDemo,videoUrl:this.videoUrl,isExternalVideo:this.isExternalVideo,hasSecondaryMedia:this.hasSecondaryMedia,scene:this.scene},e);return this.hasSecondaryMedia&&(r.secondaryMediaItem=Object.assign(Object.assign({},this.secondaryMediaItem.renderProps()),{style:Object.assign(Object.assign({},t),{bgColor:this.secondaryMediaItem.bgColor})})),r}getDataForShop(){const e=this.focalPoint,t=this.metadata;return{isDemo:t.isDemo,orderIndex:this.orderIndex,itemId:this.dto.itemId,itemUrl:this.url,itemHeight:t.height,title:t.title,itemWidth:t.width,itemType:t.type||"image",imageUrl:this.processedMediaUrl(s.Z.resizeMethods.FIT,200,200,null,null).img(),imagePurchasedUrl:this.dto.mediaUrl,fpX:e[0],fpY:e[1]}}getHighestMp4Resolution(e){const t=e.filter((e=>"mp4"===e.formats[0])),{width:r,height:i}=t.sort(((e,t)=>t.width-e.width))[0];return{width:r,height:i}}processedMediaUrl(e,t,r,i,a=!1){var o;const l=(e,t,r,i,o,s=null,l=null)=>{let u;if("function"==typeof this.createMediaUrl)try{const c=String(n.Z.hashCode(JSON.stringify({url:t,resizeMethod:r,requiredWidth:i,requiredHeight:o,sharpParams:s,focalPoint:l})));this._cachedUrls[c]||(this._cachedUrls[c]=this.createMediaUrl({item:e,originalUrl:t,resizeMethod:r,requiredWidth:i,requiredHeight:o,sharpParams:s,focalPoint:l,createMultiple:a})||""),u=this._cachedUrls[c]}catch(a){console.error("Cannot create url",a,e,t,r,i,o,s,l),u=String(t)}else u=String(t);return u};t=Math.ceil(t),r=Math.ceil(r);const u=e===s.Z.resizeMethods.FILL&&this.isCropped&&this.focalPoint,c={};let h=this.url;return c[s.Z.urlTypes.THREE_D]=()=>this.url,this.is3D&&(h=this.poster.url),this.isText?Object.assign({},...Object.values(s.Z.urlTypes).map((e=>({[e]:()=>""})))):((this.isVideo||this.isVideoPlaceholder)&&(h=null===(o=this.poster)||void 0===o?void 0:o.url,n.Z.isExternalUrl(this.url)?c[s.Z.urlTypes.VIDEO]=()=>this.url:c[s.Z.urlTypes.VIDEO]=()=>l(this,this.url,s.Z.resizeMethods.VIDEO,t,r)),c[s.Z.urlTypes.HIGH_RES]=()=>l(this,h,e,t,r,i,u),c[s.Z.urlTypes.LOW_RES]=()=>{const t=this.resizeWidth/this.resizeHeight;return l(this,h,this.cubeImages&&e!==s.Z.resizeMethods.FIT?s.Z.resizeMethods.FILL:s.Z.resizeMethods.FIT,250*t,250,Object.assign(Object.assign({},i),{quality:30,blur:30}),u)},c)}resetUrls(){const e=this.maxWidth||this.dto.width||this.metadata.width,t=this.maxHeight||this.dto.height||this.metadata.height;this.resizeWidth=Math.min(e,Math.ceil(this.width)),this.resizeHeight=Math.min(t,Math.ceil(this.height)),this._cachedUrls={},this.urls={}}createUrl(e,t){try{return this[e+"_url"][t]()}catch(e){return""}}get cubeTypeResizeMethod(){return{[s.Z.layoutParams_crop_method.FIT]:s.Z.resizeMethods.FIT,[s.Z.layoutParams_crop_method.FILL]:s.Z.resizeMethods.FILL}[this.cubeType]}createMagnifiedUrl(e=1){if(!this.urls.magnified_url){const{innerWidth:t,innerHeight:r}=this.style;this.urls.magnified_url=this.processedMediaUrl(this.cubeTypeResizeMethod,t*e,r*e,this.sharpParams,!0)}return this.urls.magnified_url[s.Z.urlTypes.HIGH_RES]()}get resized_url(){return this.urls.resized_url||(this.urls.resized_url=this.processedMediaUrl(this.cubeTypeResizeMethod,this.resizeWidth,this.resizeHeight,this.sharpParams)),this.urls.resized_url}get multi_url(){return this.urls.multi_url||(this.urls.multi_url=this.processedMediaUrl(this.cubeTypeResizeMethod,this.resizeWidth,this.resizeHeight,this.sharpParams,!0)),this.urls.multi_url}get scaled_url(){if(!this.urls.scaled_url){const e=this.maxWidth/this.maxHeight,t=this.resizeWidth/this.resizeHeight{const e=this.urls.download_url._img();return e+(e.includes("?")?"&":"?")+`dn=${this.fileName}`}),this.urls.download_url}updateSharpParams(){if(this.dto.metaData&&this.dto.metaData.sharpParams&&this.dto.metaData.sharpParams.L){const e=this.dto.metaData.sharpParams.L;e.quality&&!0===e.overrideQuality&&(this.sharpParams.quality=e.quality),e.usm&&!0===e.overrideUsm&&(this.sharpParams.usm=e.usm)}}get hasSecondaryMedia(){return!!this.secondaryMediaItem}get itemId(){return this.id}updateId(e){this.dto.itemId=this.id=e}get metadata(){let e=this.dto.metaData||this.dto.metadata;return n.Z.isUndefined(e)&&(e={}),e}get metaData(){return this.metadata}get bgColor(){let e;return e=this.isText?this.metadata&&(this.metadata.textStyle&&this.metadata.textStyle.backgroundColor||this.metadata.backgroundColor):"none",e}get isCropped(){return this.cubeImages&&this.cubeTypeResizeMethod===s.Z.resizeMethods.FILL}get focalPoint(){return this.metadata.focalPoint||[.5,.5]}set focalPoint(e){this.metadata.focalPoint=e}get photoId(){return this.id}get key(){return this._key||(this._key=(this.dto.key||this.id||this.dto.url||"no_key_found").replace(/\W/g,"")),this._key}get orderIndex(){return this.dto.orderIndex||this.dto.o||0}set orderIndex(e){this.dto.orderIndex=e}updateOrderIndex(e){const t=this.orderIndex!==e;return this.orderIndex=e,t}get url(){return this.dto.file_url||this.dto.mediaUrl||this.dto.url||this.dto.src||""}get mediaUrl(){return this.url}get html(){return this.dto.html||this.dto.text||this.metadata.html||this.metadata.text}get lastModified(){return this.metadata.lastModified}get seed(){return n.Z.hashToInt(this.url)}get isImage(){return"image"===this.type}get isImportant(){return!!this.dto.i}get videoUrl(){return this.metadata.videoUrl}get poster(){return this.metadata.poster||this.metadata.customPoster&&this.metadata.customPoster||(this.metadata.posters?this.metadata.posters[this.metadata.posters.length-1]:null)}get scene(){return this.metadata.scene}get qualities(){return this.metadata.qualities}get isExternalVideo(){return this.metadata.isExternal}get isExternal(){return!0===this.metadata.isExternal}set type(e){this._type=e}get type(){switch(this._type||this.dto.type||this.metadata.type||this.dto.media_type){case"dummy":return"dummy";case"v":case"video":return"video";case"h":case"html":case"text":return"text";case"3d":return"3d";default:return"image"}}get isVideoPlaceholder(){return!!(this.dto.isVideoPlaceholder||this.metadata.isVideoPlaceholder||this.dto.media_isVideoPlaceholder)}get videoPlaceholderUrl(){return this.dto.videoPlaceholderUrl||this.metadata.videoPlaceholderUrl||this.dto.media_videoPlaceholderUrl}get htmlContent(){var e;return null===(e=this.html)||void 0===e?void 0:e.replace(/<[^<>]*>/g,"").trim()}get alt(){return n.Z.isMeaningfulString(this.metadata.alt)&&this.metadata.alt||""}set alt(e){this.metadata.alt=e}get title(){return this.metadata.title||""}set title(e){this.metadata.title=e}get fileName(){return this.metadata.fileName||""}set fileName(e){this.metadata.fileName=e}get description(){return this.metadata.description||""}set description(e){this.metadata.description=e}get exif(){return this.metadata.exif||""}get hasLink(){return"wix"===this.linkType?!!this.linkData.type:!!this.linkUrl}get link(){return this.metadata.link||{}}get linkData(){return this.metadata.link&&this.metadata.link.data?this.metadata.link.data:this.isWixUrl?{type:"web",url:this.linkUrl}:{}}set linkData(e){this.metadata.link||(this.metadata.link={}),this.metadata.link.data=e}get linkType(){return this.metadata.link&&!n.Z.isUndefined(this.metadata.link.type)?this.metadata.link.type:this.linkUrl?"web":"none"}set linkType(e){this.metadata.link||(this.metadata.link={}),this.metadata.link={type:e,url:void 0,text:void 0,title:void 0,target:"_blank"}}get defaultLinkText(){const e=this.linkData;switch(this.linkType){case"wix":if(!e)return"Go to Link";switch(e.type){case"PageLink":return`Go to Page ${e.pageName}`;case"AnchorLink":return`Scroll to ${e.anchorName}`;case"ExternalLink":return`${e.url}`;case"EmailLink":return`Email ${e.recipient}`;case"PhoneLink":return`Call ${e.phoneNumber}`;case"DocumentLink":return`Open ${e.name}`;default:return"Go to Link"}case"web":return this.linkTitleFromUrl||this.linkUrl;case"page":return this.linkTitle;default:return""}}get defaultLinkValue(){const e=this.linkData;switch(this.linkType){case"wix":if(!e)return"Add a Link";switch(e.type){case"PageLink":return e.pageName?`PAGE - ${e.pageName}`:"PAGE";case"AnchorLink":return`ANCHOR - ${e.anchorName}`;case"ExternalLink":return`LINK - ${e.url}`;case"EmailLink":return`EMAIL - ${e.recipient}`;case"PhoneLink":return`PHONE - ${e.phoneNumber}`;case"DocumentLink":return`DOCUMENT - ${e.name}`;default:return"Add a Link"}case"web":return this.linkUrl;case"page":return this.linkTitle;default:return""}}get linkText(){return this.metadata.link&&this.metadata.link.text||this.defaultLinkText}set linkText(e){this.metadata.link||(this.metadata.link={}),this.metadata.link.text=e}get linkTitle(){return this.metadata.link&&this.metadata.link.title}set linkTitle(e){this.metadata.link||(this.metadata.link={}),this.metadata.link.title=e}get linkUrl(){return this.metadata.link&&this.metadata.link.url}set linkUrl(e){this.metadata.link||(this.metadata.link={}),this.metadata.link.url=e}get isWixUrl(){return this.linkUrl&&0===this.linkUrl.indexOf("wix")}get linkTitleFromUrl(){const e=/[^/]*\.\w+$/g.exec(this.linkUrl),t=e&&e[0];return t&&t.split(".")[0]}get unprotectedLinkOpenType(){return n.Z.get(this,"metadata.link.target")}get linkOpenType(){return this.metadata.link&&!n.Z.isUndefined(this.metadata.link.target)?this.unprotectedLinkOpenType:this.metadata.link&&!n.Z.isUndefined(this.metadata.link.targetBlank)?this.metadata.link.targetBlank?"_blank":"_top":"_blank"}set linkOpenType(e){this.metadata.link||(this.metadata.link={}),this.metadata.link.target=e}get initialLinkObject(){return{type:"none",url:void 0,text:void 0,title:void 0,target:"_blank"}}get isDemo(){return this.metadata.isDemo||this.dto.isDemo||"public"===this.metadata.sourceName||this.metadata.tags&&Array.isArray(this.metadata.tags)&&this.metadata.tags.indexOf("_paid")>=0}set isDemo(e){this.metadata.isDemo=e}get isText(){return"text"===this.type}get isVideo(){return"video"===this.type}get is3D(){return"3d"===this.type}get isVisible(){return!0}get isRendered(){return!0}get isDimensionless(){return!(this.maxWidth>1||this.maxHeight>1)}get isTransparent(){return this.url&&(this.url.indexOf(".png")>0||this.url.indexOf(".gif")>0)}get webLink(){var e;return(null===(e=this.linkUrl)||void 0===e?void 0:e.length)>0&&"web"===this.linkType?{url:this.linkUrl,target:this.linkOpenType}:{}}get directLink(){return this.dto.directLink||this.webLink||{}}get directShareLink(){return this.dto.directShareLink||""}}var m=h;const p={lll:"1,2h",llp:"1,3r",lpl:"1,2h",pll:"1,2h,3l",lpp:"1,2h,3r,3h",plp:"1,2h,3l,3r,3h",ppl:"1,2h,3l,3h",ppp:"1,2h,3l,3r,3h"},d={lll:"1,2v,3t,3b,3v",llp:"1,2v,3t,3v",lpl:"1,2v,3t,3b,3v",pll:"1,2v,3b,3v",lpp:"1,2v,3t",plp:"1,2v",ppl:"1,3b",ppp:"1,2h"},y={1:[[1]],2:[[1],[1,2],[2]],3:[[1],[1,2],[1,2,3],[2,3],[3]]};class g{constructor(e){if(this.idx=e.idx,this.stripIdx=e.stripIdx,this.inStripIdx=e.inStripIdx,this.top=e.top,this.showAllItems=e.showAllItems,this.isLastItems=e.isLastItems,this.dummyItems=[],this.targetItemSize=e.targetItemSize,this.items=e.items.map((e=>(e.Group=this,e))),e.styleParams){const{styleParams:t}=e;this.scrollDirection=t[l.Z.layoutParams.structure.scrollDirection],this.cubeType=t[l.Z.layoutParams.crop.method],this.cubeImages=t[l.Z.layoutParams.crop.enable],this.layoutOrientation=t[l.Z.layoutParams.structure.layoutOrientation],this.minItemSize=t[l.Z.layoutParams.targetItemSize.minimum],this.collageDensity=t[l.Z.layoutParams.groups.density],this.groupTypes=String(t[l.Z.layoutParams.groups.allowedGroupTypes]),this.repeatingGroupTypes=String(t[l.Z.layoutParams.groups.repeatingGroupTypes]),this.rotatingCropRatios=t[l.Z.layoutParams.crop.ratios],this.chooseBestGroup=t[l.Z.layoutParams.groups.groupByOrientation],this.externalInfoHeight=t.externalInfoHeight,this.externalInfoWidth=t.externalInfoWidth,this.imageMargin=t[l.Z.layoutParams.structure.itemSpacing],this.groupSize=t[l.Z.layoutParams.groups.groupSize]}this.visible=!0,this.rendered=!0,this.required=!0;let t=this.items.length;for(;!this.isWithinMinItemSize&&t>0;)this.placeItems(t),this.resize(),t--}resize(){"VERTICAL"===this.layoutOrientation?this.resizeToWidth(this.targetItemSize):this.resizeToHeight(this.targetItemSize),this.setLeft(this.left),this.setTop(this.top)}safeGetItem(e){if(this.items[e])return this.items[e];if(this.dummyItems[e])return this.dummyItems[e];{const t=new c(Object.assign({},this.items[this.items.length-1].config));return t.idx=t.config.idx+e-(this.items.length-1),t.type="dummy",this.dummyItems[e]=t,t}}setCubedHeight(e){const t=this.cubeImages&&1===this.groupSize&&["FILL","FIT"].includes(this.cubeType)&&0===this.repeatingGroupTypes.length&&this.rotatingCropRatios.length<2;this.cubedHeight=t?e:null}round(){this.isLastGroup&&"VERTICAL"===this.scrollDirection?this.width=this.stripWidth-this.left:this.width=Math.round(this.width),this.height=Math.round(this.height);for(const e of this.items)e.width=Math.round(e.width),e.height=Math.round(e.height),e.group={width:this.width,height:this.height};const e=this.imageMargin;switch(this.type){default:case"1":this.safeGetItem(0).width=this.width-e,this.safeGetItem(0).height=this.height-e;break;case"2v":this.safeGetItem(0).width=this.safeGetItem(1).width=this.width-e,this.safeGetItem(0).height=this.height-this.safeGetItem(1).height-2*e;break;case"2h":this.safeGetItem(0).height=this.safeGetItem(1).height=this.height-e,this.safeGetItem(0).width=this.width-this.safeGetItem(1).width-2*e;break;case"3t":this.safeGetItem(0).width=this.width-e,this.safeGetItem(0).height=this.height-this.safeGetItem(1).height-2*e,this.safeGetItem(1).width=this.width-this.safeGetItem(2).width-2*e,this.safeGetItem(2).height=this.safeGetItem(1).height;break;case"3b":this.safeGetItem(0).width=this.width-this.safeGetItem(1).width-2*e,this.safeGetItem(1).height=this.safeGetItem(0).height,this.safeGetItem(2).height=this.height-this.safeGetItem(1).height-2*e,this.safeGetItem(2).width=this.width-e;break;case"3l":this.safeGetItem(1).height=this.height-this.safeGetItem(2).height-2*e,this.safeGetItem(2).width=this.safeGetItem(1).width,this.safeGetItem(0).width=this.width-this.safeGetItem(1).width-2*e,this.safeGetItem(0).height=this.height-e;break;case"3r":this.safeGetItem(0).height=this.height-this.safeGetItem(1).height-2*e,this.safeGetItem(1).width=this.safeGetItem(0).width,this.safeGetItem(2).width=this.width-this.safeGetItem(1).width-2*e,this.safeGetItem(2).height=this.height-e;break;case"3v":this.safeGetItem(0).width=this.width-e,this.safeGetItem(1).width=this.width-e,this.safeGetItem(2).width=this.width-e,this.safeGetItem(2).height=this.height-this.safeGetItem(0).height-this.safeGetItem(1).height-3*e;break;case"3h":this.safeGetItem(0).height=this.height-e,this.safeGetItem(1).height=this.height-e,this.safeGetItem(2).height=this.height-e,this.safeGetItem(2).width=this.width-this.safeGetItem(0).width-this.safeGetItem(1).width-3*e}}getGroupType(e){if(this.repeatingGroupTypes){const e=String(this.repeatingGroupTypes).split(",");return e[this.idx%e.length]}{const t="VERTICAL"===this.layoutOrientation;let r;if(this.chooseBestGroup){const e=this.items.map((e=>e.orientation.slice(0,1))).join("");r=(t?p:d)[e]}else 3!==this.items.length&&3!==e||(r=t?"1,2h,3l,3r,3h":"1,2v,3t,3b,3v");2!==this.items.length&&2!==e||(r=t?"1,2h":"1,2v"),1!==this.items.length&&1!==e||(r="1");let i=r.length>0?r.split(","):[];if(this.groupTypes){const e=this.groupTypes.split(",");e.length>1?(i=i.filter((t=>e.indexOf(t)>=0)),0===i.length&&(i=["1"])):i=e}if(this.collageDensity>=0){const e=this.collageDensity,t=parseInt(i[i.length-1]),r=y[t],a=r[Math.floor(e*(r.length-1))];i=i.filter((e=>a.indexOf(parseInt(e))>=0)),0===i.length&&(i=["1"])}return i[this.calculateRandomSeed(i.length)]||"1"}}calculateRandomSeed(e){let t;return t="VERTICAL"===this.layoutOrientation?this.items[0].seed%e:(this.inStripIdx+this.stripIdx)%e,Math.round(Math.min(Math.max(0,t),e-1))}placeItems(e){this.type=this.getGroupType(e);let t,r=[],i=0,a=0;switch(this.type){default:case"1":t=this.safeGetItem(0),t.pinToCorner("top-left"),r.push(t),i=t.width,a=t.height;break;case"2v":t=this.safeGetItem(0),t.pinToCorner("top-left"),r.push(t),i=t.width,a=t.height,t=this.safeGetItem(1),t.pinToCorner("bottom-left"),t.resize(i/t.width),a+=t.height,r.push(t);break;case"2h":t=this.safeGetItem(0),t.pinToCorner("top-left"),t.innerOffset=[0,0],r.push(t),i=t.width,a=t.height,t=this.safeGetItem(1),t.pinToCorner("top-right"),t.innerOffset=[0,0],t.resize(a/t.height),i+=t.width,r.push(t);break;case"3b":t=this.safeGetItem(0),t.pinToCorner("top-left"),r.push(t),i=t.width,a=t.height,t=this.safeGetItem(1),t.pinToCorner("top-right"),t.resize(a/t.height),i+=t.width,r.push(t),t=this.safeGetItem(2),t.pinToCorner("bottom-left"),t.resize(i/t.width),a+=t.height,r.push(t);break;case"3t":t=this.safeGetItem(1),t.pinToCorner("bottom-left"),r.push(t),i=t.width,a=t.height,t=this.safeGetItem(2),t.pinToCorner("bottom-right"),t.resize(a/t.height),i+=t.width,r.push(t),t=this.safeGetItem(0),t.pinToCorner("top-left"),t.resize(i/t.width),a+=t.height,r=[t].concat(r);break;case"3r":t=this.safeGetItem(0),t.pinToCorner("top-left"),r.push(t),i=t.width,a=t.height,t=this.safeGetItem(1),t.pinToCorner("bottom-left"),t.resize(i/t.width),a+=t.height,r.push(t),t=this.safeGetItem(2),t.pinToCorner("top-right"),t.resize(a/t.height),i+=t.width,r.push(t);break;case"3l":t=this.safeGetItem(1),t.pinToCorner("top-right"),r.push(t),i=t.width,a=t.height,t=this.safeGetItem(2),t.pinToCorner("bottom-right"),t.resize(i/t.width),a+=t.height,r.push(t),t=this.safeGetItem(0),t.pinToCorner("top-left"),t.resize(a/t.height),i+=t.width,r=[t].concat(r);break;case"3v":t=this.safeGetItem(0),t.pinToCorner("top-left"),t.setPosition("relative"),r.push(t),i=t.width,a=t.height,t=this.safeGetItem(2),t.pinToCorner("bottom-left"),t.setPosition("relative"),t.resize(i/t.width),a+=t.height,r.push(t),t=this.safeGetItem(1),t.setPosition("relative"),t.resize(i/t.width),a+=t.height,t.pinToCorner("top",r[0]),r=[r[0],t,r[1]];break;case"3h":t=this.safeGetItem(0),t.pinToCorner("top-left"),t.setPosition("relative"),r.push(t),i=t.width,a=t.height,t=this.safeGetItem(2),t.pinToCorner("top-right"),t.setPosition("relative"),t.resize(a/t.height),i+=t.width,r.push(t),t=this.safeGetItem(1),t.setPosition("relative"),t.resize(a/t.height),i+=t.width,t.pinToCorner("left",r[0]),r=[r[0],t,r[1]]}this.width=i,this.height=a,this.items=r,this.placed=!0}resizeToHeight(e){this.height=e,this.width=this.getWidthByHeight(e),this.resizeItems()}resizeToWidth(e){this.width=e,this.height=this.getHeightByWidth(e),this.resizeItems()}resizeItems(){const e=["3b","3r"].indexOf(this.type)>=0?this.items.slice().reverse():this.items;e.forEach(((t,r)=>{t.resize(this.getItemDimensions(e,r)),t.group={top:this.top,left:this.left,width:this.width,height:this.height},t.groupOffset={bottom:this.top+this.height,right:this.left+this.width}}))}getItemDimensions(e,t){const r=this.imageMargin;switch(this.type){default:case"1":case"2v":case"3v":return{width:this.width-r};case"2h":case"3h":return{height:this.height-r};case"3t":case"3b":if(0===t){return{width:this.width-r}}return{height:this.height-e[0].height-2*r};case"3r":case"3l":if(0===t){return{height:this.height-r}}return{width:this.width-e[0].width-2*r}}}getHeightByWidth(e){let t=1,r=1;const i=this.imageMargin,a=this.items.map((e=>e.width/e.height));switch(this.type){default:case"1":t=1/a[0],r=1-t;break;case"2h":t=1/(a[0]+a[1]),r=1-2*t;break;case"2v":t=1/a[0]+1/a[1],r=2-t;break;case"3h":t=1/(a[0]+a[1]+a[2]),r=1-3*t;break;case"3v":t=1/a[0]+1/a[1]+1/a[2],r=3-t;break;case"3t":t=1/(a[2]+a[1])+1/a[0],r=2-2/(a[2]+a[1])+1/a[0];break;case"3b":t=1/(a[0]+a[1])+1/a[2],r=2-2/(a[0]+a[1])+1/a[2];break;case"3l":t=(a[1]+a[2])/(a[0]*a[1]+a[1]*a[2]+a[0]*a[2]),r=2-t*(2+a[0]);break;case"3r":t=(a[0]+a[1])/(a[0]*a[1]+a[1]*a[2]+a[0]*a[2]),r=2-t*(2+a[2])}return e*t+i*r}getWidthByHeight(e){let t=1,r=1;const i=this.imageMargin,a=this.items.map((e=>e.width/e.height));switch(this.type){default:case"1":t=a[0],r=1-t;break;case"2h":t=a[0]+a[1],r=2-t;break;case"2v":t=1/(1/a[0]+1/a[1]),r=1-2*t;break;case"3h":t=a[0]+a[1]+a[2],r=3-t;break;case"3v":t=1/(1/a[0]+1/a[1]+1/a[2]),r=1-3*t;break;case"3t":t=1/(1/(a[2]+a[1])+1/a[0]),r=(2/(a[2]+a[1])+1/a[0]-2)*t;break;case"3b":t=1/(1/(a[0]+a[1])+1/a[2]),r=(2/(a[0]+a[1])+1/a[2]-2)*t;break;case"3l":t=(a[0]*a[1]+a[1]*a[2]+a[0]*a[2])/(a[1]+a[2]),r=2+a[0]-2*t;break;case"3r":t=(a[0]*a[1]+a[1]*a[2]+a[0]*a[2])/(a[0]+a[1]),r=2+a[2]-2*t}return e*t+i*r}setTop(e){this.top=e||0;for(const t of this.items)t.groupOffset={top:e,bottom:e+this.height}}setLeft(e){this.left=e||0;for(const t of this.items)t.groupOffset={left:e,right:e+this.width}}get id(){return"g"+this.idx+"_"+(this.items[0]||{}).id}get ratio(){return this.width/this.height}get height(){return this.cubedHeight||this._height}set height(e){this._height=e}get totalHeight(){return this.height+this.infoHeight}get infoHeight(){return this.externalInfoHeight||0}get infoWidth(){return this.Column?this.Column.infoWidth:this.externalInfoWidth||0}get bottom(){return this.top+this.height}get right(){return this.left+this.width}set items(e){this._items=e}get items(){return this._items}get realItems(){return this._items.filter((e=>"dummy"!==e.type))}get isWithinMinItemSize(){return!(0===this.items.length||!this.placed)&&(1===this.items.length||this.items.reduce(((e,t)=>{const r=Math.min(t.width,t.height)>=this.minItemSize;return e&&r}),!0))}get scheme(){return{id:this.id,idx:this.idx,stripIdx:this.stripIdx,inStripIdx:this.inStripIdx,isLastGroup:this.isLastGroup,items:this.items.map((e=>e.scheme)),type:this.type,width:this.width,height:this.height,infoHeight:this.infoHeight,infoWidth:this.infoWidth,ratio:this.ratio,top:this.top,left:this.left,right:this.right,bottom:this.bottom,visible:this.visible,rendered:this.rendered,required:this.required}}}var _=class{constructor(e){this.uniqueId=n.Z.generateUUID(),this.isGalleryGroup=!0,e.dto&&e.dto.dto&&(e.dto=e.dto.dto,n.Z.isDev()&&console.warn("Item core is created with already existing item core")),this.dto=Object.assign({},e.dto),e.scheme?this.processScheme(e.scheme):this.processScheme(new g({dto:e.dto}).scheme),e.items?this.items=e.items:console.warn("Pro Gallery created Gallery Group without items",e)}processScheme(e){this.id=e.id,this.idx=e.idx,this.width=e.width,this.height=e.height,this.totalHeight=e.totalHeight,this.ratio=e.ratio,this.top=e.top,this.left=e.left,this.right=e.right,this.bottom=e.bottom,this.visible=e.visible,this.rendered=e.rendered,this.required=e.required}renderProps(e){return{className:"group",id:this.id,idx:this.idx,key:this.key,type:this.type,top:this.top,left:this.left,right:this.right,bottom:this.bottom,width:this.width,height:this.height,totalHeight:this.totalHeight,items:this.items,visible:this.visible,rendered:this.rendered,required:this.required,galleryConfig:e}}get key(){return"group_"+this.id}};class v{static convertDtoToLayoutItem(e){if(!!(e.id&&e.width>0&&e.height>0))return e;{const t=e.metadata||e.metaData,r="object"==typeof t?t:n.Z.parseStringObject(t)||{};return Object.assign({id:e.itemId||e.photoId,width:r.width,height:r.height},e)}}static convertToGalleryItems(e,t={},r=[]){e.galleryItems=[];for(let i=0;i0)&&1.5*this.targetItemSize0)return this.groups.length>=r;const{galleryWidth:o}=this.container;let s;if("HORIZONTAL"===i)s=!1;else{const r=o/(this.ratio+e.ratio)-a,i=o/this.ratio-a;s=!isNaN(r)&&!isNaN(i)&&(i<0||r<0&&Math.abs(i)0}get lastGroup(){return this.groups[this.groups.length-1]}get scheme(){return{idx:this.idx,groups:this.groups.map((e=>e.scheme)),width:this.width,height:this.height,ratio:this.ratio,isFullWidth:this.isFullWidth}}}class f{constructor(e,t,r,i,a){this.idx=e,this.groups=[],this.height=0,this.width=t,this.left=r,this.cubedHeight=i,this.infoWidth=a||0}addGroup(e){this.addGroups([e])}addGroups(e){this.groups=this.groups.concat(e),e.forEach((e=>{e.columnIdx=this.idx,e.Column=this}))}get totalWidth(){return this.width+this.infoWidth}get scheme(){return{idx:this.idx,groups:this.groups.map((e=>e.scheme)),width:this.width,height:this.height}}}var b=new class{set layout(e){this._layout=Object.assign({},e)}get layout(){return this._layout}};class I{constructor(e){this.ready=!1,this.pointer=0,this.layoutItems=[],this.findNeighborItem=this.findNeighborItem.bind(this),this.updateParams(e),!1!==this.createLayoutOnInit&&this.createLayout(e)}updateParams(e){this.srcItems=e.items,this.styleParams=u.addDefaultStyleParams(e.styleParams),this.container=u.convertContainer(e.container,this.styleParams);const t=e.options||{};this.useExistingLayout=!!t.useExistingLayout,this.createLayoutOnInit=t.createLayoutOnInit,this.showAllItems=!!t.showAllItems||!!e.showAllItems,this.useLayoutStore=!!t.useLayoutStore}verifyGalleryState(){if(!this.container.galleryWidth)throw this.ready=!1,new Error("Layouter: cannot create layout, galleryWidth is undefined or 0");if(!this.styleParams.targetItemSize)throw this.ready=!1,new Error("Layouter: cannot create layout, targetItemSize is undefined or 0")}calcNumberOfColumns(e,t){let r=1;if("VERTICAL"===this.styleParams[l.Z.layoutParams.structure.layoutOrientation])if(this.styleParams.fixedColumns>0)r=this.styleParams.fixedColumns;else{const i=e/t,a=[Math.floor,Math.ceil],o=a.map((e=>e(i))).map((t=>Math.round(e/t))).map((e=>Math.abs(t-e)));r=(0,a[o.indexOf(Math.min(...o))])(i)||1}else r=1;return r}findShortestColumn(e,t){let r=e[0];if("LEFT_TO_RIGHT"===this.styleParams[l.Z.layoutParams.structure.groupsOrder])r=e[t%e.length];else{let t=-1;for(const i of e){const e=i.height;(e0){if(this.useLayoutStore)Object.assign(this,b.layout);else if("VERTICAL"===this.styleParams[l.Z.layoutParams.structure.layoutOrientation]){this.groups.slice(-3).forEach((e=>{const t=this.columns[e.columnIdx];t&&(t.height-=e.totalHeight,t.groups.splice(-1,1)),this.groups.splice(-1,1),e.realItems.forEach((()=>{this.layoutItems.splice(-1,1),this.pointer--})),this.groupIdx--}))}else{if("HORIZONTAL"===this.scrollDirection){this.groups.slice(-1).forEach((e=>{const t=this.columns[0];t&&t.groups.splice(-1,1);const r=this.strips[0];r&&(r.setWidth(r.width-e.width),r.ratio=r.width/r.height,r.groups.splice(-1,1),this.strip=r),this.strips=[],this.groups.splice(-1,1),e.realItems.forEach((()=>{this.layoutItems.splice(-1,1),this.pointer--})),this.groupIdx--})),this.galleryHeight=0}else{const e=this.strips.slice(-2);e&&(e.forEach((e=>{if(e){this.strips.splice(-1,1);e.groups.forEach((e=>{this.groups.splice(-1,1),e.items.forEach((()=>{this.layoutItems.splice(-1,1),this.pointer--})),this.groupIdx--}))}})),this.galleryHeight=this.strips.reduce(((e,t)=>e+t.height),0),this.strip=new P({idx:this.strips.length+1,container:this.container,groupsPerStrip:this.styleParams[l.Z.layoutParams.groups.numberOfGroupsPerRow],scrollDirection:this.styleParams[l.Z.layoutParams.structure.scrollDirection],targetItemSize:this.targetItemSize}))}this.groupItems=[]}this.item={},this.pointer=Math.max(0,this.pointer),this.maxLoops=10*this.srcItems.length}else{if(this.pointer=0,this.firstGroup=!1,this.layoutItems=[],this.groups=[],this.strips=[],this.styleParams.forceFullHeight)this.targetItemSize=Math.sqrt(this.container.galleryHeight*this.container.galleryWidth/this.srcItems.length);else{let e;e="function"==typeof this.styleParams.targetItemSize?this.styleParams.targetItemSize():this.styleParams.targetItemSize,this.targetItemSize=Math.floor(e)+Math.ceil(2*(this.styleParams[l.Z.layoutParams.structure.itemSpacing]/2-this.styleParams[l.Z.layoutParams.structure.gallerySpacing]))}this.galleryWidth=Math.floor(this.container.galleryWidth),this.maxGroupSize=this.getMaxGroupSize(),this.groupIdx=0,this.item={},this.groupItems=[],this.group={},this.bounds=this.container.bounds||{},this.strip=new P({idx:1,container:this.container,groupsPerStrip:this.styleParams[l.Z.layoutParams.groups.numberOfGroupsPerRow],scrollDirection:this.styleParams[l.Z.layoutParams.structure.scrollDirection],targetItemSize:this.targetItemSize}),this.galleryHeight=0,this.numOfCols=this.calcNumberOfColumns(this.galleryWidth,this.targetItemSize),this.targetItemSize="VERTICAL"===this.styleParams[l.Z.layoutParams.structure.layoutOrientation]?Math.floor(this.galleryWidth/this.numOfCols):this.targetItemSize;const{externalInfoWidth:e}=this.styleParams,t=this.styleParams[l.Z.layoutParams.structure.columnRatios],r=this.styleParams[l.Z.layoutParams.structure.itemSpacing],i=this.styleParams[l.Z.layoutParams.crop.ratios];let a=!1;if(t&&t.length>0){for(a=t.map(Number);a.lengthe+t),0);a=a.map((t=>Math.round(t*=e)))}let o,s=0,n=this.galleryWidth;this.columns=Array(this.numOfCols).fill(0).map(((t,l)=>{let u=a?a[l]:Math.round(n/(this.numOfCols-l));const c=s;s+=u,n-=u;const h=Math.round(e>1?e:e*u)||0;return u-=h,o=o||(this.targetItemSize-h-r)/i[0]+r,new f(l,u,c,o,h)})),this.maxLoops=10*this.srcItems.length}}createLayout(e){for(void 0!==e&&this.updateParams(e),this.verifyGalleryState(),this.prepareLayoutParams();this.srcItems[this.pointer];){if(6===this.imagesLeft&&this.saveExistingLayout(),this.maxLoops--,this.maxLoops<=0)return console.error("Cannot create layout, maxLoops reached!!!"),!1;if(this.item=new c({idx:this.pointer,inGroupIdx:this.groupItems.length+1,scrollTop:this.galleryHeight,dto:this.srcItems[this.pointer],container:this.container,styleParams:this.styleParams}),this.layoutItems[this.pointer]=this.item,this.groupItems.push(this.item),this.groupItems.length(t.cubeImages=!0,t.cropRatio=t.ratio=t.width/(t.height*e),t.height*=e,t))),this.groups.map((t=>(t.height*=e,t.setTop(t.top*e),t.resizeItems(),t)))}return this.lastGroup=this.group,this.colWidth=Math.floor(this.galleryWidth/this.numOfCols),this.height=this.galleryHeight-2*(this.styleParams[l.Z.layoutParams.structure.itemSpacing]/2-this.styleParams[l.Z.layoutParams.structure.gallerySpacing]),this.width=this.lastGroup.left+this.lastGroup.width,this.ready=!0,this.scheme}lastVisibleItemIdxInHeight(e){for(let t=this.items.length-1;t>=0;t--){if(this.items[t].offset.top{let i,a,o,s=null,n={};return this.layoutItems.forEach((l=>{i=l.offset.top+l.height/2,a=l.offset.left+l.width/2,o=Math.sqrt(Math.pow(i-t,2)+Math.pow(a-e,2)),(null===s||o>0&&oiri>t));break;default:i=a(r.offset.right,r.offset.top+r.height/2,((e,t,r)=>r>e))}return i.idx>=0?i.idx:(console.warn("Could not find offset for itemIdx",e,t),e)}getMaxGroupSize(){let e=1;try{const t="string"==typeof this.styleParams[l.Z.layoutParams.groups.allowedGroupTypes]&&this.styleParams[l.Z.layoutParams.groups.allowedGroupTypes].length>0?this.styleParams[l.Z.layoutParams.groups.allowedGroupTypes].split(","):this.styleParams[l.Z.layoutParams.groups.allowedGroupTypes];e=t.length>0?t.reduce(((e,t)=>Math.max(e,parseInt(t))),1):Number(t),e=Math.min(e,this.styleParams[l.Z.layoutParams.groups.groupSize])}catch(t){console.error("couldn't calculate max group size - returing 3 (?)",t),e=3}return e}get isLastImage(){return!this.srcItems[this.pointer+1]}get isLastImages(){return!this.srcItems[this.pointer+1]}get imagesLeft(){return this.srcItems.length-this.pointer-1}get items(){return this.layoutItems}get scheme(){return{items:this.items.map((e=>e.scheme)),groups:this.groups.map((e=>e.scheme)),strips:this.strips.map((e=>e.scheme)),columns:this.columns.map((e=>e.scheme)),height:this.height,width:this.width}}}function S(e,t,r,i=!0){let a=i?Object.assign({},e):e,o=t.split("_"),s=o.pop(),n=a;return o.forEach((e=>{"object"!=typeof n[e]&&(n[e]={}),n=n[e]})),n[s]=r,a}function E(e){var t={};for(var r in e)if(e.hasOwnProperty(r))if("object"==typeof e[r]&&!(e[r]instanceof Array)&&null!==e[r]&&Object.keys(e[r]).length>0){var i=E(e[r]);for(var a in i)i.hasOwnProperty(a)&&(t[r+"_"+a]=i[a])}else t[r]=e[r];return t}function O(e){return Object.entries(e).reduce(((e,[t,r])=>S(e,t,r,false)),{})}const T=E({layoutParams:{crop:{ratios:[1],method:s.Z[l.Z.layoutParams.crop.method].FILL,enable:!1,enableSmartCrop:!1,cropOnlyFill:!1,alignment:s.Z[l.Z.layoutParams.crop.alignment].CENTER},structure:{galleryLayout:-1,galleryRatio:{value:0,includeExternalInfo:!1},scrollDirection:s.Z[l.Z.layoutParams.structure.scrollDirection].VERTICAL,gallerySpacing:0,itemSpacing:10,enableStreching:!0,responsiveMode:s.Z[l.Z.layoutParams.structure.responsiveMode].FIT_TO_SCREEN,scatter:{randomScatter:0,manualScatter:""},layoutOrientation:s.Z[l.Z.layoutParams.structure.layoutOrientation].HORIZONTAL,groupsOrder:s.Z[l.Z.layoutParams.structure.groupsOrder].BY_HEIGHT,numberOfGridRows:1,numberOfColumns:3,columnRatios:[]},groups:{groupByOrientation:!0,numberOfGroupsPerRow:0,density:.8,groupSize:3,allowedGroupTypes:[s.Z[l.Z.layoutParams.groups.allowedGroupTypes][1],s.Z[l.Z.layoutParams.groups.allowedGroupTypes]["2h"],s.Z[l.Z.layoutParams.groups.allowedGroupTypes]["2v"],s.Z[l.Z.layoutParams.groups.allowedGroupTypes]["3t"],s.Z[l.Z.layoutParams.groups.allowedGroupTypes]["3b"],s.Z[l.Z.layoutParams.groups.allowedGroupTypes]["3l"],s.Z[l.Z.layoutParams.groups.allowedGroupTypes]["3r"]],repeatingGroupTypes:[]},thumbnails:{size:120,spacing:4,marginToGallery:0,enable:!1,position:s.Z[l.Z.layoutParams.thumbnails.position].OUTSIDE_GALLERY,alignment:s.Z[l.Z.layoutParams.thumbnails.alignment].BOTTOM},navigationArrows:{enable:!0,position:s.Z[l.Z.layoutParams.navigationArrows.position].ON_GALLERY,padding:23,size:23,verticalAlignment:s.Z[l.Z.layoutParams.navigationArrows.verticalAlignment].ITEM_CENTER,type:s.Z[l.Z.layoutParams.navigationArrows.type].DEFAULT_ARROW,container:{type:s.Z[l.Z.layoutParams.navigationArrows.container.type].SHADOW,backgroundColor:"",borderRadius:-1}},targetItemSize:{unit:s.Z[l.Z.layoutParams.targetItemSize.unit].SMART,value:30,minimum:120},info:{sizeUnits:s.Z[l.Z.layoutParams.info.sizeUnits].PERCENT,width:50,height:200,spacing:10,layout:s.Z[l.Z.layoutParams.info.layout].NO_BACKGROUND,placement:s.Z[l.Z.layoutParams.info.placement].OVERLAY,border:{width:0,radius:0,color:""}}},behaviourParams:{item:{clickAction:s.Z[l.Z.behaviourParams.item.clickAction].NOTHING,video:{playTrigger:s.Z[l.Z.behaviourParams.item.video.playTrigger].HOVER,loop:!0,volume:0,enableControls:!1,speed:1,enablePlayButton:!1,enableThumbnailsPlayButton:!1,enablePlaceholder:!0},overlay:{hoveringBehaviour:s.Z[l.Z.behaviourParams.item.overlay.hoveringBehaviour].APPEARS,hoverAnimation:s.Z[l.Z.behaviourParams.item.overlay.hoverAnimation].NO_EFFECT,position:s.Z[l.Z.behaviourParams.item.overlay.position].LEFT,size:100,sizeUnits:s.Z[l.Z.behaviourParams.item.overlay.sizeUnits].PERCENT,padding:0},content:{hoverAnimation:s.Z[l.Z.behaviourParams.item.content.hoverAnimation].NO_EFFECT,loader:s.Z[l.Z.behaviourParams.item.content.loader].BLUR,placementAnimation:s.Z[l.Z.behaviourParams.item.content.placementAnimation].NO_EFFECT,magnificationValue:2,tiltAngleValue:-4},secondaryMedia:{trigger:s.Z[l.Z.behaviourParams.item.secondaryMedia.trigger].OFF,behaviour:s.Z[l.Z.behaviourParams.item.secondaryMedia.behaviour].APPEARS},threeDimensionalScene:{controls:{enableAutoRotate:!1,enablePan:!0,enableRotate:!0,enableZoom:!1},transform:{rotation:"x0y0z0",scale:"x1y1z1",position:"x0y0z0"},playTrigger:s.Z[l.Z.behaviourParams.item.threeDimensionalScene.playTrigger].HOVER,enablePlayButton:!1,enableThumbnailsPlayButton:!1,enablePlaceholder:!0}},gallery:{blockContextMenu:!0,layoutDirection:s.Z[l.Z.behaviourParams.gallery.layoutDirection].LEFT_TO_RIGHT,scrollAnimation:s.Z[l.Z.behaviourParams.gallery.scrollAnimation].NO_EFFECT,enableIndexingShareLinks:!0,horizontal:{enableScrollSnap:!1,navigationDuration:400,blockScroll:!1,loop:!1,slideTransition:s.Z[l.Z.behaviourParams.gallery.horizontal.slideTransition].EASE,slideAnimation:s.Z[l.Z.behaviourParams.gallery.horizontal.slideAnimation].SCROLL,autoSlide:{behaviour:s.Z[l.Z.behaviourParams.gallery.horizontal.autoSlide.behaviour].OFF,interval:4,pauseOnHover:!0,speed:200},slideshowInfo:{buttonsAlignment:s.Z[l.Z.behaviourParams.gallery.horizontal.slideshowInfo.buttonsAlignment].CENTER,enablePlayButton:!1,enableCounter:!1}},vertical:{loadMore:{enable:!1,text:"",amount:s.Z[l.Z.behaviourParams.gallery.vertical.loadMore.amount].ALL}}}},stylingParams:{itemBorderWidth:0,itemBorderRadius:0,itemEnableShadow:!1,itemBorderColor:"",itemShadowBlur:20,itemShadowDirection:135,itemShadowSize:10,itemShadowOpacityAndColor:"",arrowsColor:""},fixedColumns:0});var Z=r(12146),L=r(60997);var w=(e,t)=>{let r=Object.assign({},e);return r[l.Z.layoutParams.info.height]=function(e,t){if(!function(e,t){return(0,L.hd)(e[l.Z.layoutParams.info.placement])&&t}(e,t))return 0;return e[l.Z.layoutParams.info.height]}(r,t),r.externalInfoHeight=function(e,t){let r=t;t>0&&(0,L.hd)(e[l.Z.layoutParams.info.placement])&&e[l.Z.layoutParams.info.layout]===s.Z[l.Z.layoutParams.info.layout].SEPARATED_BACKGROUND&&(r+=e[l.Z.layoutParams.info.spacing],r+=2*e[l.Z.layoutParams.info.border.width]);return r}(r,r[l.Z.layoutParams.info.height]),r.externalInfoWidth=function(e,t){if(!function(e,t){const r=e[l.Z.layoutParams.structure.scrollDirection]===s.Z[l.Z.layoutParams.structure.scrollDirection].VERTICAL&&e[l.Z.layoutParams.structure.layoutOrientation]===s.Z[l.Z.layoutParams.structure.layoutOrientation].VERTICAL&&1===e[l.Z.layoutParams.groups.groupSize];return r&&(0,L.Xq)(e[l.Z.layoutParams.info.placement])&&t}(e,t))return 0;let r=0;r=e[l.Z.layoutParams.info.sizeUnits]===s.Z[l.Z.layoutParams.info.sizeUnits].PERCENT?Math.min(100,Math.max(0,e[l.Z.layoutParams.info.width]))/100:e[l.Z.layoutParams.info.width];return r}(r,t),r};const A="OPTIONS",R=e=>e.replace(/_/g," ").split(" ").map((e=>e[0].toUpperCase()+e.substr(1).toLowerCase())).join(" "),C=e=>Object.entries(s.Z[e]).map((([e,t])=>({value:t,title:R(e)})));var N={title:"Slide Animation",isRelevant:e=>e[l.Z.layoutParams.structure.scrollDirection]===s.Z[l.Z.layoutParams.structure.scrollDirection].HORIZONTAL&&1===e[l.Z.layoutParams.groups.groupSize]&&e[l.Z.layoutParams.crop.enable]&&JSON.stringify(e[l.Z.layoutParams.crop.ratios])===JSON.stringify(["100%/100%"]),isRelevantDescription:'Set a Horizontal gallery ("Scroll Direction" as "Horizontal"), set "Max Group Size" to "1" and set "Crop Images" to true.',type:A,default:s.Z[l.Z.behaviourParams.gallery.horizontal.slideAnimation].SCROLL,get options(){return C(l.Z.behaviourParams.gallery.horizontal.slideAnimation)},description:"Choose the slide animation effect to be used when navigating between items in a slideshow"},x={title:"Scroll Direction",isRelevant:()=>!0,isRelevantDescription:"Always relevant.",type:A,default:s.Z[l.Z.layoutParams.structure.scrollDirection].VERTICAL,get options(){return C(l.Z.layoutParams.structure.scrollDirection)},description:"Toggle between two types of galleries. Vertical and Horizontal. Notice that many options are available only for a specific scroll direction."},D=e=>x.isRelevant(e)&&e[l.Z.layoutParams.structure.scrollDirection]===s.Z[l.Z.layoutParams.structure.scrollDirection].HORIZONTAL,M={title:"Navigation Arrows Position",isRelevant:e=>D(e)&&e[l.Z.layoutParams.navigationArrows.enable],isRelevantDescription:'Set a Horizontal gallery ("Scroll Direction" as "Horizontal") and set "Show Navigation Arrows" to "true".',type:A,default:s.Z.layoutParams_navigationArrows_position.ON_GALLERY,get options(){return C("layoutParams_navigationArrows_position")},description:"Set the position of the navigation arrows in sliders. You can choose to position the arrows on the gallery (ON_GALLERY)\n ,outside the gallery (OUTSIDE_GALLERY- in these case the gallery will margins from both sides to make room for the arrows), or on the mouse cursor (still in experimental mode).);\n "};const G=(e,t)=>e[l.Z.layoutParams.targetItemSize.unit]===s.Z[l.Z.layoutParams.targetItemSize.unit].PIXEL&&e[l.Z.layoutParams.targetItemSize.value]>0?e[l.Z.layoutParams.targetItemSize.value]:e[l.Z.layoutParams.targetItemSize.unit]===s.Z[l.Z.layoutParams.targetItemSize.unit].PERCENT&&e[l.Z.layoutParams.targetItemSize.value]>0?(Z.Z&&Z.Z.innerWidth||980)*(e[l.Z.layoutParams.targetItemSize.value]/100):t>0?t:e[l.Z.layoutParams.targetItemSize.value],H=e=>{let t=Object.assign({},e);return t=k(t),t[l.Z.layoutParams.structure.scrollDirection]!==s.Z[l.Z.layoutParams.structure.scrollDirection].VERTICAL&&t[l.Z.layoutParams.structure.layoutOrientation]!==s.Z[l.Z.layoutParams.structure.layoutOrientation].VERTICAL||(t[l.Z.layoutParams.groups.allowedGroupTypes]=[s.Z[l.Z.layoutParams.groups.allowedGroupTypes][1]],t[l.Z.layoutParams.groups.groupSize]=1,t[l.Z.layoutParams.groups.density]=0),t},k=e=>{let t=Object.assign({},e);return t.fixedColumns=0,t[l.Z.layoutParams.structure.scrollDirection]!==s.Z[l.Z.layoutParams.structure.scrollDirection].VERTICAL&&t[l.Z.layoutParams.structure.layoutOrientation]!==s.Z[l.Z.layoutParams.structure.layoutOrientation].VERTICAL||(t.fixedColumns=e[l.Z.layoutParams.structure.responsiveMode]===s.Z[l.Z.layoutParams.structure.responsiveMode].SET_ITEMS_PER_ROW?t[l.Z.layoutParams.structure.numberOfColumns]:0),t},B=e=>{let t=Object.assign({},e);return t[l.Z.layoutParams.crop.method]===s.Z[l.Z.layoutParams.crop.method].FIT&&(t[l.Z.stylingParams.itemBorderWidth]=0,t[l.Z.stylingParams.itemBorderRadius]=0,t[l.Z.stylingParams.itemEnableShadow]=!1),t};var z=function(e,t){let r=Object.assign({},e);return n.Z.isMobile()&&(r=(e=>{let t=Object.assign({},e);return t[l.Z.layoutParams.structure.itemSpacing]>0&&(t[l.Z.layoutParams.structure.itemSpacing]=Math.min(t[l.Z.layoutParams.structure.itemSpacing],50)),t})(r)),r=(e=>{let t=Object.assign({},e);return s.Z.isLayout("SLIDER")(t)||s.Z.isLayout("COLUMN")(t)||s.Z.isLayout("SLIDESHOW")(t)||(t[l.Z.layoutParams.structure.layoutOrientation]===s.Z[l.Z.layoutParams.structure.layoutOrientation].HORIZONTAL||t[l.Z.layoutParams.groups.groupSize]>1)&&(t[l.Z.layoutParams.info.placement]=s.Z[l.Z.layoutParams.info.placement].OVERLAY),t})(r),r=(e=>{let t=Object.assign({},e);return e.EXPERIMENTALallowParallelInfos||(0,L.Sy)(t[l.Z.layoutParams.info.placement])||t[l.Z.behaviourParams.item.overlay.hoveringBehaviour]===s.Z[l.Z.behaviourParams.item.overlay.hoveringBehaviour].NEVER_SHOW||(t[l.Z.behaviourParams.item.overlay.hoveringBehaviour]=s.Z[l.Z.behaviourParams.item.overlay.hoveringBehaviour].APPEARS),t})(r),r=(e=>{let t=Object.assign({},e);return t[l.Z.stylingParams.itemEnableShadow]&&t[l.Z.layoutParams.structure.scrollDirection]===s.Z[l.Z.layoutParams.structure.scrollDirection].HORIZONTAL&&(t[l.Z.stylingParams.itemEnableShadow]=!1),t})(r),r=(e=>{let t=Object.assign({},e);return t[l.Z.stylingParams.itemEnableShadow]&&t[l.Z.layoutParams.structure.scrollDirection]===s.Z[l.Z.layoutParams.structure.scrollDirection].VERTICAL&&(t[l.Z.layoutParams.structure.gallerySpacing]=Math.max(t[l.Z.layoutParams.structure.gallerySpacing],(t[l.Z.stylingParams.itemShadowSize]||0)+(t[l.Z.stylingParams.itemShadowBlur]||0))),t})(r),r=(e=>{let t=Object.assign({},e);return t[l.Z.layoutParams.navigationArrows.position]===s.Z[l.Z.layoutParams.navigationArrows.position].OUTSIDE_GALLERY&&(t[l.Z.layoutParams.navigationArrows.padding]=0),t})(r),r=(e=>{let t=Object.assign({},e);return t[l.Z.layoutParams.structure.scrollDirection]===s.Z[l.Z.layoutParams.structure.scrollDirection].HORIZONTAL&&(t[l.Z.layoutParams.structure.layoutOrientation]=s.Z[l.Z.layoutParams.structure.layoutOrientation].HORIZONTAL),t})(r),r=(e=>{let t=Object.assign({},e);return t[l.Z.layoutParams.structure.scrollDirection]===s.Z[l.Z.layoutParams.structure.scrollDirection].VERTICAL&&(t[l.Z.behaviourParams.gallery.horizontal.loop]=!1),t})(r),r=(e=>{let t=Object.assign({},e);return(t[l.Z.layoutParams.structure.scrollDirection]===s.Z[l.Z.layoutParams.structure.scrollDirection].VERTICAL||t[l.Z.layoutParams.groups.groupSize]>1||!t[l.Z.layoutParams.crop.enable])&&(t[l.Z.behaviourParams.gallery.horizontal.slideAnimation]=s.Z[l.Z.behaviourParams.gallery.horizontal.slideAnimation].SCROLL),t})(r),r=(e=>{let t=Object.assign({},e);return t.loadMoreButtonFont&&n.Z.isMobile()&&(t.loadMoreButtonFont.value=t.loadMoreButtonFont.value.replace(/^font\s*:\s*/,""),t.loadMoreButtonFont.value=t.loadMoreButtonFont.value.replace(/;$/,""),t.loadMoreButtonFont.value.indexOf("underline")>-1?(t.loadMoreButtonFont.value=t.loadMoreButtonFont.value.replace("underline",""),t.textDecorationLoadMore="underline"):t.textDecorationLoadMore="none"),t})(r),r=w(r,t),r=(e=>{let t=Object.assign({},e);const r=t[l.Z.layoutParams.groups.allowedGroupTypes].length>=1&&"1"===t[l.Z.layoutParams.groups.allowedGroupTypes].join(""),i=t[l.Z.layoutParams.info.placement].split(",").filter((e=>!(0,L.mR)(e))).join(",");return(0,L.DT)(i)&&r||(t[l.Z.layoutParams.navigationArrows.verticalAlignment]=s.Z[l.Z.layoutParams.navigationArrows.verticalAlignment].ITEM_CENTER),t})(r),r=(e=>{let t=Object.assign({},e);return t[l.Z.behaviourParams.gallery.horizontal.slideshowInfo.enableCounter]?(t[l.Z.behaviourParams.gallery.horizontal.autoSlide.behaviour]===s.Z[l.Z.behaviourParams.gallery.horizontal.autoSlide.behaviour].OFF&&(t[l.Z.behaviourParams.gallery.horizontal.slideshowInfo.enableCounter]=!1),!1===s.Z.isLayout("SLIDESHOW")(e)&&(t[l.Z.behaviourParams.gallery.horizontal.slideshowInfo.enableCounter]=!1),t):t})(r),r=(e=>{let t=Object.assign({},e);return e[l.Z.behaviourParams.gallery.horizontal.slideAnimation]!==s.Z[l.Z.behaviourParams.gallery.horizontal.slideAnimation].FADE&&e[l.Z.behaviourParams.gallery.horizontal.slideAnimation]!==s.Z[l.Z.behaviourParams.gallery.horizontal.slideAnimation].DECK||!N.isRelevant(e)||(t[l.Z.behaviourParams.gallery.horizontal.blockScroll]=!0),t})(r),r=(e=>{let t=Object.assign({},e);return e[l.Z.layoutParams.navigationArrows.position]===s.Z[l.Z.layoutParams.navigationArrows.position].MOUSE_CURSOR&&M.isRelevant(e)&&(t[l.Z.behaviourParams.item.video.enableControls]=!1),t})(r),r=(e=>{let t=Object.assign({},e);return n.Z.isTouch()&&e[l.Z.layoutParams.navigationArrows.position]===s.Z[l.Z.layoutParams.navigationArrows.position].MOUSE_CURSOR&&M.isRelevant(e)&&(t[l.Z.layoutParams.navigationArrows.enable]=!1),t})(r),r=(e=>{let t=Object.assign({},e);return t[l.Z.layoutParams.crop.cropOnlyFill]&&(t[l.Z.layoutParams.crop.enable]=t[l.Z.layoutParams.crop.method]===s.Z[l.Z.layoutParams.crop.method].FILL),t})(r),r};const F=e=>{let t=Object.assign({},e);return t[l.Z.layoutParams.structure.galleryLayout]=s.Z[l.Z.layoutParams.structure.galleryLayout].ALTERNATE,t[l.Z.layoutParams.crop.method]=s.Z[l.Z.layoutParams.crop.method].FILL,t[l.Z.layoutParams.crop.enable]=!0,t[l.Z.layoutParams.crop.ratios]=[1],t[l.Z.layoutParams.info.placement]=s.Z[l.Z.layoutParams.info.placement].OVERLAY,t[l.Z.layoutParams.structure.scrollDirection]=s.Z[l.Z.layoutParams.structure.scrollDirection].VERTICAL,t[l.Z.layoutParams.structure.responsiveMode]=s.Z[l.Z.layoutParams.structure.responsiveMode].SET_ITEMS_PER_ROW,t[l.Z.layoutParams.structure.gallerySpacing]=0,t[l.Z.layoutParams.structure.layoutOrientation]=s.Z[l.Z.layoutParams.structure.layoutOrientation].VERTICAL,t[l.Z.layoutParams.groups.groupSize]=3,t[l.Z.layoutParams.groups.density]=.48,t[l.Z.layoutParams.groups.allowedGroupTypes]=[s.Z[l.Z.layoutParams.groups.allowedGroupTypes][1],s.Z[l.Z.layoutParams.groups.allowedGroupTypes]["2h"],s.Z[l.Z.layoutParams.groups.allowedGroupTypes]["2v"],s.Z[l.Z.layoutParams.groups.allowedGroupTypes]["3t"],s.Z[l.Z.layoutParams.groups.allowedGroupTypes]["3b"],s.Z[l.Z.layoutParams.groups.allowedGroupTypes]["3l"],s.Z[l.Z.layoutParams.groups.allowedGroupTypes]["3r"],s.Z[l.Z.layoutParams.groups.allowedGroupTypes]["3v"],s.Z[l.Z.layoutParams.groups.allowedGroupTypes]["3h"]],t[l.Z.layoutParams.targetItemSize.value]=86,t[l.Z.layoutParams.targetItemSize.minimum]=50,t[l.Z.layoutParams.groups.groupByOrientation]=!0,t[l.Z.layoutParams.groups.repeatingGroupTypes]=[s.Z[l.Z.layoutParams.groups.allowedGroupTypes][1],s.Z[l.Z.layoutParams.groups.allowedGroupTypes]["2h"],s.Z[l.Z.layoutParams.groups.allowedGroupTypes][1],s.Z[l.Z.layoutParams.groups.allowedGroupTypes]["2h"]],t[l.Z.layoutParams.crop.enableSmartCrop]=!1,t[l.Z.layoutParams.structure.scatter.randomScatter]=0,t[l.Z.layoutParams.structure.scatter.manualScatter]="",t[l.Z.layoutParams.structure.numberOfColumns]=1,t[l.Z.layoutParams.groups.numberOfGroupsPerRow]=0,t[l.Z.layoutParams.structure.groupsOrder]=s.Z[l.Z.layoutParams.structure.groupsOrder].BY_HEIGHT,t.fixedColumns=1,t},U=(F({}),e=>{let t=Object.assign({},e);return t[l.Z.layoutParams.structure.galleryLayout]=s.Z[l.Z.layoutParams.structure.galleryLayout].BRICKS,t[l.Z.layoutParams.crop.method]=s.Z[l.Z.layoutParams.crop.method].FILL,t[l.Z.layoutParams.crop.enable]=!0,t[l.Z.layoutParams.info.placement]=s.Z[l.Z.layoutParams.info.placement].OVERLAY,t[l.Z.layoutParams.structure.scrollDirection]=s.Z[l.Z.layoutParams.structure.scrollDirection].VERTICAL,t[l.Z.layoutParams.structure.gallerySpacing]=0,t[l.Z.layoutParams.structure.layoutOrientation]=s.Z[l.Z.layoutParams.structure.layoutOrientation].VERTICAL,t[l.Z.layoutParams.groups.groupSize]=3,t[l.Z.layoutParams.groups.density]=.8,t[l.Z.layoutParams.groups.allowedGroupTypes]=[s.Z[l.Z.layoutParams.groups.allowedGroupTypes][1],s.Z[l.Z.layoutParams.groups.allowedGroupTypes]["2h"],s.Z[l.Z.layoutParams.groups.allowedGroupTypes]["2v"],s.Z[l.Z.layoutParams.groups.allowedGroupTypes]["3t"],s.Z[l.Z.layoutParams.groups.allowedGroupTypes]["3b"],s.Z[l.Z.layoutParams.groups.allowedGroupTypes]["3l"],s.Z[l.Z.layoutParams.groups.allowedGroupTypes]["3r"],s.Z[l.Z.layoutParams.groups.allowedGroupTypes]["3v"],s.Z[l.Z.layoutParams.groups.allowedGroupTypes]["3h"]],t[l.Z.behaviourParams.gallery.horizontal.loop]=!1,t[l.Z.layoutParams.structure.responsiveMode]=s.Z[l.Z.layoutParams.structure.responsiveMode].SET_ITEMS_PER_ROW,t[l.Z.layoutParams.targetItemSize.value]=400,t[l.Z.layoutParams.targetItemSize.minimum]=50,t[l.Z.layoutParams.groups.groupByOrientation]=!0,t[l.Z.layoutParams.groups.repeatingGroupTypes]=[s.Z[l.Z.layoutParams.groups.allowedGroupTypes]["2h"]],t[l.Z.layoutParams.crop.enableSmartCrop]=!1,t[l.Z.layoutParams.structure.scatter.randomScatter]=0,t[l.Z.layoutParams.structure.scatter.manualScatter]="",t[l.Z.layoutParams.structure.numberOfColumns]=1,t[l.Z.layoutParams.groups.numberOfGroupsPerRow]=0,t[l.Z.layoutParams.structure.groupsOrder]=s.Z[l.Z.layoutParams.structure.groupsOrder].BY_HEIGHT,t[l.Z.layoutParams.crop.ratios]=[.707,1.414,1.414,.707],t.fixedColumns=1,t}),W=(U({}),e=>{let t=Object.assign({},e);return t[l.Z.layoutParams.structure.galleryLayout]=s.Z[l.Z.layoutParams.structure.galleryLayout].COLLAGE,t[l.Z.layoutParams.crop.enable]=!1,s.Z[l.Z.layoutParams.info.placement].OVERLAY,t[l.Z.layoutParams.groups.groupSize]=3,t[l.Z.layoutParams.groups.allowedGroupTypes]=[s.Z[l.Z.layoutParams.groups.allowedGroupTypes][1],s.Z[l.Z.layoutParams.groups.allowedGroupTypes]["2h"],s.Z[l.Z.layoutParams.groups.allowedGroupTypes]["2v"],s.Z[l.Z.layoutParams.groups.allowedGroupTypes]["3t"],s.Z[l.Z.layoutParams.groups.allowedGroupTypes]["3b"],s.Z[l.Z.layoutParams.groups.allowedGroupTypes]["3l"],s.Z[l.Z.layoutParams.groups.allowedGroupTypes]["3r"]],t[l.Z.behaviourParams.gallery.horizontal.loop]=!1,t[l.Z.layoutParams.structure.numberOfGridRows]=1,t[l.Z.layoutParams.structure.responsiveMode]=s.Z[l.Z.layoutParams.structure.responsiveMode].FIT_TO_SCREEN,t[l.Z.layoutParams.structure.numberOfColumns]=0,t[l.Z.layoutParams.crop.cropOnlyFill]=!1,t[l.Z.behaviourParams.gallery.horizontal.slideAnimation]=s.Z[l.Z.behaviourParams.gallery.horizontal.slideAnimation].SCROLL,t.fixedColumns=0,t}),V=(W({}),e=>{let t=Object.assign({},e);return t[l.Z.layoutParams.structure.galleryLayout]=s.Z[l.Z.layoutParams.structure.galleryLayout].FULLSIZE,t[l.Z.layoutParams.crop.enable]=!0,t[l.Z.layoutParams.crop.ratios]=["100%/100%"],t[l.Z.layoutParams.crop.method]=s.Z[l.Z.layoutParams.crop.method].FILL,t[l.Z.layoutParams.info.placement]=s.Z[l.Z.layoutParams.info.placement].OVERLAY,t[l.Z.layoutParams.structure.scrollDirection]=s.Z[l.Z.layoutParams.structure.scrollDirection].HORIZONTAL,t[l.Z.layoutParams.structure.gallerySpacing]=0,t[l.Z.layoutParams.structure.layoutOrientation]=s.Z[l.Z.layoutParams.structure.layoutOrientation].HORIZONTAL,t[l.Z.layoutParams.groups.groupSize]=1,t[l.Z.layoutParams.groups.allowedGroupTypes]=[s.Z[l.Z.layoutParams.groups.allowedGroupTypes][1]],t[l.Z.layoutParams.structure.numberOfGridRows]=1,t[l.Z.layoutParams.crop.enableSmartCrop]=!1,t[l.Z.behaviourParams.gallery.horizontal.enableScrollSnap]=!0,t[l.Z.layoutParams.crop.cropOnlyFill]=!0,t[l.Z.layoutParams.structure.scatter.randomScatter]=0,t[l.Z.layoutParams.structure.scatter.manualScatter]="",t[l.Z.layoutParams.structure.itemSpacing]=0,t}),j=(V({}),e=>{let t=Object.assign({},e);return t[l.Z.layoutParams.structure.galleryLayout]=s.Z[l.Z.layoutParams.structure.galleryLayout].COLUMN,t[l.Z.layoutParams.crop.method]=s.Z[l.Z.layoutParams.crop.method].FILL,t[l.Z.layoutParams.crop.enable]=!0,t[l.Z.layoutParams.crop.ratios]=[.35],t[l.Z.layoutParams.structure.scrollDirection]=s.Z[l.Z.layoutParams.structure.scrollDirection].HORIZONTAL,t[l.Z.layoutParams.structure.layoutOrientation]=s.Z[l.Z.layoutParams.structure.layoutOrientation].HORIZONTAL,t[l.Z.layoutParams.groups.groupSize]=1,t[l.Z.layoutParams.groups.allowedGroupTypes]=[s.Z[l.Z.layoutParams.groups.allowedGroupTypes][1]],t[l.Z.layoutParams.structure.numberOfGridRows]=1,t[l.Z.layoutParams.crop.enableSmartCrop]=!1,t[l.Z.layoutParams.structure.numberOfColumns]=0,t[l.Z.layoutParams.crop.cropOnlyFill]=!1,t[l.Z.behaviourParams.gallery.horizontal.slideAnimation]=s.Z[l.Z.behaviourParams.gallery.horizontal.slideAnimation].SCROLL,t.fixedColumns=0,t}),Y=(j({}),e=>{let t=Object.assign({},e);return t[l.Z.layoutParams.structure.galleryLayout]=s.Z[l.Z.layoutParams.structure.galleryLayout].GRID,t[l.Z.layoutParams.crop.enable]=!0,t[l.Z.layoutParams.structure.layoutOrientation]=s.Z[l.Z.layoutParams.structure.layoutOrientation].VERTICAL,t[l.Z.layoutParams.groups.groupSize]=1,t[l.Z.layoutParams.groups.allowedGroupTypes]=[s.Z[l.Z.layoutParams.groups.allowedGroupTypes][1]],t[l.Z.behaviourParams.gallery.horizontal.loop]=!1,t[l.Z.layoutParams.crop.enableSmartCrop]=!1,t[l.Z.layoutParams.crop.cropOnlyFill]=!1,t[l.Z.layoutParams.targetItemSize.minimum]=50,t[l.Z.behaviourParams.gallery.horizontal.slideAnimation]=s.Z[l.Z.behaviourParams.gallery.horizontal.slideAnimation].SCROLL,t[l.Z.layoutParams.groups.density]=0,t}),$=(Y({}),e=>{let t=Object.assign({},e);return t=Y(t),t.targetItemSize=G(t,Math.round(8.5*t[l.Z.layoutParams.targetItemSize.value]+150)),t=H(t),t=(e=>{let t=Object.assign({},e);if(!n.Z.isUndefined(e[l.Z.layoutParams.structure.numberOfGridRows])&&e[l.Z.layoutParams.structure.scrollDirection]===s.Z[l.Z.layoutParams.structure.scrollDirection].HORIZONTAL)switch(t[l.Z.layoutParams.structure.numberOfColumns]=0,e[l.Z.layoutParams.structure.numberOfGridRows]){case 1:default:t[l.Z.layoutParams.groups.allowedGroupTypes]=[s.Z[l.Z.layoutParams.groups.allowedGroupTypes][1]],t[l.Z.layoutParams.groups.groupSize]=1,t[l.Z.layoutParams.groups.density]=0;break;case 2:t[l.Z.layoutParams.groups.allowedGroupTypes]=[s.Z[l.Z.layoutParams.groups.allowedGroupTypes]["2v"]],t[l.Z.layoutParams.groups.groupSize]=2,t[l.Z.layoutParams.groups.density]=1;break;case 3:t[l.Z.layoutParams.groups.allowedGroupTypes]=[s.Z[l.Z.layoutParams.groups.allowedGroupTypes]["3v"]],t[l.Z.layoutParams.groups.groupSize]=3,t[l.Z.layoutParams.groups.density]=1}return t})(t),t=B(t),t}),K=e=>{let t=Object.assign({},e);return t[l.Z.layoutParams.structure.galleryLayout]=s.Z[l.Z.layoutParams.structure.galleryLayout].MASONRY,t[l.Z.layoutParams.crop.enable]=!1,t[l.Z.layoutParams.structure.scrollDirection]=s.Z[l.Z.layoutParams.structure.scrollDirection].VERTICAL,t[l.Z.layoutParams.groups.groupSize]=1,t[l.Z.layoutParams.groups.allowedGroupTypes]=[s.Z[l.Z.layoutParams.groups.allowedGroupTypes][1]],t[l.Z.behaviourParams.gallery.horizontal.loop]=!1,t[l.Z.layoutParams.crop.cropOnlyFill]=!1,t},X=(K({}),e=>{let t=Object.assign({},e);t=K(t);const r=t[l.Z.layoutParams.structure.layoutOrientation]===s.Z[l.Z.layoutParams.structure.layoutOrientation].VERTICAL,i=e[l.Z.layoutParams.targetItemSize.value];return t.targetItemSize=G(t,r?8*i+200:5*i+200),t=H(t),t=(e=>{let t=Object.assign({},e);const r=t[l.Z.layoutParams.structure.layoutOrientation]===s.Z[l.Z.layoutParams.structure.layoutOrientation].VERTICAL;return t[l.Z.layoutParams.structure.responsiveMode]=r?e[l.Z.layoutParams.structure.responsiveMode]:s.Z[l.Z.layoutParams.structure.responsiveMode].FIT_TO_SCREEN,t})(t),t}),q=e=>{let t=Object.assign({},e);return t[l.Z.layoutParams.structure.galleryLayout]=s.Z[l.Z.layoutParams.structure.galleryLayout].MIX,t[l.Z.layoutParams.crop.method]=s.Z[l.Z.layoutParams.crop.method].FILL,t[l.Z.layoutParams.crop.enable]=!0,t[l.Z.layoutParams.crop.ratios]=[1],t[l.Z.layoutParams.info.placement]=s.Z[l.Z.layoutParams.info.placement].OVERLAY,t[l.Z.layoutParams.structure.scrollDirection]=s.Z[l.Z.layoutParams.structure.scrollDirection].VERTICAL,t[l.Z.layoutParams.structure.gallerySpacing]=0,t[l.Z.layoutParams.structure.layoutOrientation]=s.Z[l.Z.layoutParams.structure.layoutOrientation].VERTICAL,t[l.Z.layoutParams.groups.groupSize]=3,t[l.Z.layoutParams.groups.allowedGroupTypes]=[s.Z[l.Z.layoutParams.groups.allowedGroupTypes][1],s.Z[l.Z.layoutParams.groups.allowedGroupTypes]["2h"],s.Z[l.Z.layoutParams.groups.allowedGroupTypes]["2v"],s.Z[l.Z.layoutParams.groups.allowedGroupTypes]["3t"],s.Z[l.Z.layoutParams.groups.allowedGroupTypes]["3b"],s.Z[l.Z.layoutParams.groups.allowedGroupTypes]["3l"],s.Z[l.Z.layoutParams.groups.allowedGroupTypes]["3r"],s.Z[l.Z.layoutParams.groups.allowedGroupTypes]["3v"],s.Z[l.Z.layoutParams.groups.allowedGroupTypes]["3h"]],t[l.Z.layoutParams.groups.density]=.48,t[l.Z.layoutParams.structure.responsiveMode]=s.Z[l.Z.layoutParams.structure.responsiveMode].SET_ITEMS_PER_ROW,t[l.Z.layoutParams.targetItemSize.value]=86,t[l.Z.layoutParams.targetItemSize.minimum]=50,t[l.Z.layoutParams.groups.groupByOrientation]=!0,t[l.Z.layoutParams.groups.repeatingGroupTypes]=[s.Z[l.Z.layoutParams.groups.allowedGroupTypes][1],s.Z[l.Z.layoutParams.groups.allowedGroupTypes]["3l"],s.Z[l.Z.layoutParams.groups.allowedGroupTypes][1],s.Z[l.Z.layoutParams.groups.allowedGroupTypes]["3r"]],t[l.Z.layoutParams.crop.enableSmartCrop]=!1,t[l.Z.layoutParams.structure.scatter.randomScatter]=0,t[l.Z.layoutParams.structure.scatter.manualScatter]="",t[l.Z.layoutParams.structure.numberOfColumns]=1,t[l.Z.layoutParams.groups.numberOfGroupsPerRow]=0,t[l.Z.layoutParams.structure.groupsOrder]=s.Z[l.Z.layoutParams.structure.groupsOrder].BY_HEIGHT,t.fixedColumns=1,t},J=(q({}),e=>{let t=Object.assign({},e);return t[l.Z.layoutParams.structure.galleryLayout]=s.Z[l.Z.layoutParams.structure.galleryLayout].PANORAMA,t[l.Z.layoutParams.crop.enable]=!1,t[l.Z.layoutParams.structure.scrollDirection]=s.Z[l.Z.layoutParams.structure.scrollDirection].VERTICAL,t[l.Z.layoutParams.structure.layoutOrientation]=s.Z[l.Z.layoutParams.structure.layoutOrientation].VERTICAL,t[l.Z.layoutParams.groups.groupSize]=1,t[l.Z.layoutParams.groups.allowedGroupTypes]=[s.Z[l.Z.layoutParams.groups.allowedGroupTypes][1]],t[l.Z.layoutParams.structure.responsiveMode]=s.Z[l.Z.layoutParams.structure.responsiveMode].SET_ITEMS_PER_ROW,t[l.Z.layoutParams.structure.numberOfColumns]=1,t[l.Z.layoutParams.crop.cropOnlyFill]=!1,t[l.Z.behaviourParams.gallery.horizontal.loop]=!1,t.fixedColumns=1,t}),Q=(J({}),e=>{let t=Object.assign({},e);return t[l.Z.layoutParams.structure.galleryLayout]=s.Z[l.Z.layoutParams.structure.galleryLayout].SLIDER,t[l.Z.layoutParams.crop.enable]=!0,t[l.Z.layoutParams.structure.scrollDirection]=s.Z[l.Z.layoutParams.structure.scrollDirection].HORIZONTAL,t[l.Z.layoutParams.structure.layoutOrientation]=s.Z[l.Z.layoutParams.structure.layoutOrientation].HORIZONTAL,t[l.Z.layoutParams.groups.groupSize]=1,t[l.Z.layoutParams.groups.allowedGroupTypes]=[s.Z[l.Z.layoutParams.groups.allowedGroupTypes][1]],t[l.Z.layoutParams.structure.numberOfGridRows]=1,t[l.Z.layoutParams.crop.enableSmartCrop]=!1,t[l.Z.behaviourParams.gallery.horizontal.enableScrollSnap]=!0,t[l.Z.layoutParams.crop.cropOnlyFill]=!0,t[l.Z.behaviourParams.gallery.horizontal.slideAnimation]=s.Z[l.Z.behaviourParams.gallery.horizontal.slideAnimation].SCROLL,t});Q({});var ee=function(e){e[l.Z.behaviourParams.item.content.placementAnimation]=s.Z[l.Z.behaviourParams.item.content.placementAnimation].NO_EFFECT,e[l.Z.behaviourParams.item.overlay.hoverAnimation]=s.Z[l.Z.behaviourParams.item.overlay.hoverAnimation].NO_EFFECT,e[l.Z.behaviourParams.item.content.hoverAnimation]=s.Z[l.Z.behaviourParams.item.content.hoverAnimation].NO_EFFECT};const te=e=>{let t=Object.assign({},e);return t[l.Z.layoutParams.structure.galleryLayout]=s.Z[l.Z.layoutParams.structure.galleryLayout].SLIDESHOW,t[l.Z.layoutParams.crop.ratios]=["100%/100%"],t[l.Z.layoutParams.crop.enable]=!0,t[l.Z.layoutParams.structure.scrollDirection]=s.Z[l.Z.layoutParams.structure.scrollDirection].HORIZONTAL,t[l.Z.layoutParams.structure.gallerySpacing]=0,t[l.Z.layoutParams.structure.layoutOrientation]=s.Z[l.Z.layoutParams.structure.layoutOrientation].HORIZONTAL,t[l.Z.layoutParams.groups.groupSize]=1,t[l.Z.layoutParams.info.placement]=s.Z[l.Z.layoutParams.info.placement].BELOW,t[l.Z.layoutParams.groups.allowedGroupTypes]=[s.Z[l.Z.layoutParams.groups.allowedGroupTypes][1]],t[l.Z.stylingParams.itemBorderWidth]=0,t[l.Z.stylingParams.itemBorderRadius]=0,t[l.Z.stylingParams.itemBorderColor]=void 0,t[l.Z.layoutParams.structure.numberOfGridRows]=1,ee(t),t[l.Z.layoutParams.crop.enableSmartCrop]=!1,t[l.Z.layoutParams.targetItemSize.value]=550,t[l.Z.layoutParams.structure.numberOfColumns]=1,t[l.Z.behaviourParams.gallery.horizontal.enableScrollSnap]=!0,t[l.Z.layoutParams.crop.cropOnlyFill]=!1,t[l.Z.layoutParams.structure.scatter.randomScatter]=0,t[l.Z.layoutParams.structure.scatter.manualScatter]="",t[l.Z.layoutParams.structure.itemSpacing]=0,t.fixedColumns=1,t},re=(te({}),e=>{let t=Object.assign({},e);return t[l.Z.layoutParams.structure.galleryLayout]=s.Z[l.Z.layoutParams.structure.galleryLayout].THUMBNAIL,t[l.Z.layoutParams.crop.ratios]=["100%/100%"],t[l.Z.layoutParams.crop.enable]=!0,t[l.Z.layoutParams.info.placement]=s.Z[l.Z.layoutParams.info.placement].OVERLAY,t[l.Z.layoutParams.structure.scrollDirection]=s.Z[l.Z.layoutParams.structure.scrollDirection].HORIZONTAL,t[l.Z.layoutParams.structure.gallerySpacing]=0,t[l.Z.layoutParams.structure.layoutOrientation]=s.Z[l.Z.layoutParams.structure.layoutOrientation].HORIZONTAL,t[l.Z.layoutParams.groups.groupSize]=1,t[l.Z.layoutParams.groups.allowedGroupTypes]=[s.Z[l.Z.layoutParams.groups.allowedGroupTypes][1]],t[l.Z.layoutParams.structure.numberOfGridRows]=1,t[l.Z.layoutParams.crop.enableSmartCrop]=!1,t[l.Z.layoutParams.thumbnails.enable]=!0,t[l.Z.behaviourParams.gallery.horizontal.enableScrollSnap]=!0,t[l.Z.layoutParams.crop.cropOnlyFill]=!1,t[l.Z.layoutParams.structure.scatter.randomScatter]=0,t[l.Z.layoutParams.structure.scatter.manualScatter]="",t[l.Z.layoutParams.structure.itemSpacing]=0,t[l.Z.layoutParams.targetItemSize.value]=550,t}),ie=(re({}),e=>{let t=Object.assign({},e);return t[l.Z.layoutParams.structure.galleryLayout]=s.Z[l.Z.layoutParams.structure.galleryLayout].EMPTY,t}),ae=(ie({}),e=>{try{const t=e.jsonStyleParams?JSON.parse(e.jsonStyleParams):{};return function(...e){return O(Object.assign({},...e.map(E)))}(e,O(t))}catch(e){return{}}}),oe=e=>{const t=s.Z[l.Z.layoutParams.structure.galleryLayout];switch(e[l.Z.layoutParams.structure.galleryLayout]){case t.MASONRY:return X(e);case t.GRID:return $(e);case t.THUMBNAIL:return(e=>{let t=Object.assign({},e);return t=re(t),t.targetItemSize=G(t),t=B(t),t})(e);case t.SLIDER:return(e=>{let t=Object.assign({},e);return t=Q(t),t.targetItemSize=G(t),t=B(t),t})(e);case t.SLIDESHOW:return(e=>{let t=Object.assign({},e);return t=te(t),t.targetItemSize=G(t),t=B(t),t})(e);case t.PANORAMA:return(e=>{let t=Object.assign({},e);return t=J(t),t.targetItemSize=G(t),t})(e);case t.COLUMN:return(e=>{let t=Object.assign({},e);return t=j(t),t.targetItemSize=G(t),t})(e);case t.MAGIC:return console.error("A layout generated by the magicLayoutSeed is no longer supported as of Pro Gallery v5"),e;case t.FULLSIZE:return(e=>{let t=Object.assign({},e);return t=V(t),t.targetItemSize=G(t),t})(e);case t.BRICKS:return(e=>{let t=Object.assign({},e);return t=U(t),t.targetItemSize=G(t),t})(e);case t.MIX:return(e=>{let t=Object.assign({},e);return t=q(t),t.targetItemSize=G(t),t})(e);case t.ALTERNATE:return(e=>{let t=Object.assign({},e);return t=F(t),t.targetItemSize=G(t),t})(e);case t.EMPTY:return(e=>{let t=Object.assign({},e);return t=ie(t),t=k(t),t.targetItemSize=G(t,Math.round(9*t[l.Z.layoutParams.targetItemSize.value]+100)),t})(e);case t.JSON_FIXED:return ae(e);case t.COLLAGE:default:return(e=>{let t=Object.assign({},e);t=W(t);const r=e[l.Z.layoutParams.targetItemSize.value];return t.targetItemSize=G(t,Math.round(5*r+500)),t})(e)}};var se=e=>e[l.Z.layoutParams.structure.scrollDirection]===s.Z[l.Z.layoutParams.structure.scrollDirection].HORIZONTAL,ne=e=>{const t=e[l.Z.layoutParams.groups.repeatingGroupTypes].length>1?"1"===e[l.Z.layoutParams.groups.repeatingGroupTypes].join(""):"1"===e[l.Z.layoutParams.groups.allowedGroupTypes].join(""),r=e[l.Z.layoutParams.info.placement].split(",").filter((e=>!(0,L.mR)(e))).join(",");return t&&(0,L.DT)(r)&&se(e)&&e[l.Z.layoutParams.structure.galleryRatio.value]>0};var le=new class{constructor(){this.options={},this.container={},this.id="",this._cache={}}getOrPutInCache(e,t){return this._cache[e]||(this._cache[e]=t()),this._cache[e]}dumpCache(){this._cache={}}updateParams({options:e,container:t,id:r}){this.dumpCache(),this.id=r||this.id,this.options=e||this.options,this.container=t||this.container,this.fixHeightForHorizontalGalleryIfNeeded()}getGalleryDimensions(){return this.getOrPutInCache("galleryDimensions",(()=>{const e={galleryWidth:Math.ceil(this.getGalleryWidth()),galleryHeight:Math.ceil(this.getGalleryHeight()),scrollBase:this.container.scrollBase?Math.ceil(this.container.scrollBase):0,height:Math.ceil(this.container.height),width:Math.ceil(this.container.width)};return this.container.externalScrollBase&&(e.scrollBase+=this.container.externalScrollBase),this.options[l.Z.layoutParams.thumbnails.enable]&&this.options[l.Z.layoutParams.thumbnails.position]===s.Z[l.Z.layoutParams.thumbnails.position].OUTSIDE_GALLERY&&(e.galleryHeight-=this.getThumbnailHeightDelta(),e.galleryWidth-=this.getThumbnailWidthDelta()),this.options[l.Z.layoutParams.thumbnails.enable]&&(e.navigationBarHeight=this.getThumbnailHeightDelta()||e.galleryHeight,e.navigationBarWidth=this.getThumbnailWidthDelta()||e.galleryWidth),e}))}getGalleryWidth(){return this.getOrPutInCache("galleryWidth",(()=>{let e=Math.floor(this.container.width)+2*this.getDimensionFix();return this.options[l.Z.layoutParams.navigationArrows.position]===s.Z[l.Z.layoutParams.navigationArrows.position].OUTSIDE_GALLERY&&this.options[l.Z.layoutParams.structure.scrollDirection]===s.Z[l.Z.layoutParams.structure.scrollDirection].HORIZONTAL&&(e-=2*(this.options[l.Z.layoutParams.navigationArrows.size]+40+this.options[l.Z.layoutParams.structure.itemSpacing]/2)),e}))}getGalleryHeight(){return this.getOrPutInCache("galleryHeight",(()=>Math.floor((this.container.height>0?this.container.height:0)+(()=>this.options[l.Z.layoutParams.structure.scrollDirection]===s.Z[l.Z.layoutParams.structure.scrollDirection].HORIZONTAL?this.getDimensionFix():0)())))}getDimensionFix(){return this.getOrPutInCache("dimensionFix",(()=>Number(this.options[l.Z.layoutParams.structure.itemSpacing]/2)-Number(this.options[l.Z.layoutParams.structure.gallerySpacing])))}getGalleryRatio(){return this.getOrPutInCache("galleryRatio",(()=>{const e=this.getGalleryDimensions();return e.galleryWidth/e.galleryHeight}))}getThumbnailSize(){return this.options[l.Z.layoutParams.thumbnails.size]+this.options[l.Z.layoutParams.structure.gallerySpacing]+this.options[l.Z.layoutParams.thumbnails.marginToGallery]}getThumbnailHeightDelta(){switch(this.options[l.Z.layoutParams.thumbnails.alignment]){case s.Z[l.Z.layoutParams.thumbnails.alignment].TOP:case s.Z[l.Z.layoutParams.thumbnails.alignment].BOTTOM:return this.getThumbnailSize();case s.Z[l.Z.layoutParams.thumbnails.alignment].RIGHT:case s.Z[l.Z.layoutParams.thumbnails.alignment].LEFT:return 0}}getThumbnailWidthDelta(){switch(this.options[l.Z.layoutParams.thumbnails.alignment]){case s.Z[l.Z.layoutParams.thumbnails.alignment].TOP:case s.Z[l.Z.layoutParams.thumbnails.alignment].BOTTOM:return 0;case s.Z[l.Z.layoutParams.thumbnails.alignment].RIGHT:case s.Z[l.Z.layoutParams.thumbnails.alignment].LEFT:return this.getThumbnailSize()}}fixHeightForHorizontalGalleryIfNeeded(){if(this.options[l.Z.layoutParams.structure.scrollDirection]===s.Z[l.Z.layoutParams.structure.scrollDirection].HORIZONTAL&&this.options[l.Z.layoutParams.structure.galleryRatio.value]>0)if(this.options[l.Z.layoutParams.thumbnails.enable]&&this.options[l.Z.layoutParams.thumbnails.position]===s.Z[l.Z.layoutParams.thumbnails.position].OUTSIDE_GALLERY)switch(this.options[l.Z.layoutParams.thumbnails.alignment]){case s.Z[l.Z.layoutParams.thumbnails.alignment].TOP:case s.Z[l.Z.layoutParams.thumbnails.alignment].BOTTOM:this.container.height=this.container.width*this.options[l.Z.layoutParams.structure.galleryRatio.value]+this.getThumbnailHeightDelta();break;case s.Z[l.Z.layoutParams.thumbnails.alignment].RIGHT:case s.Z[l.Z.layoutParams.thumbnails.alignment].LEFT:this.container.height=(this.container.width-this.getThumbnailWidthDelta())*this.options[l.Z.layoutParams.structure.galleryRatio.value]}else this.container.height=this.container.width*this.options[l.Z.layoutParams.structure.galleryRatio.value],!this.options[l.Z.layoutParams.structure.galleryRatio.includeExternalInfo]&&ne(this.options)&&(this.container.height+=this.options.externalInfoHeight)}};var ue=new class{createBlueprint({params:e,lastParams:t,existingBlueprint:r,blueprintManagerId:i,isUsingCustomInfoElements:a}){this.reasons={items:"",itemsAdded:"",options:"",container:""};let o={};try{const{container:i,items:s,options:l}=e,{container:u,items:c,options:h}=t,{formattedItems:m,changed:p}=this.formatItemsIfNeeded(s,c),{formattedOptions:d,changed:y}=this.formatOptionsIfNeeded(l,h,a),{formattedContainer:g,changed:_}=this.formatContainerIfNeeded(i,u,h,d||r.options,y),v=p||y||_;if(o={itemsChanged:p,optionsChanged:y,containerChanged:_},v||!r){r||(r={});const e=this.createStructure({formattedContainer:g||r.container,formattedItems:m||r.items,formattedOptions:d||r.options},v);d&&(r.options=d),m&&(r.items=m),g&&(r.container=g),r.structure=e;n.Z.isHeightSetByGallery(r.options)&&(r.container.height=r.container.galleryHeight=e.height)}}catch(e){console.error("Could not create blueprint, error:",e)}return{blueprint:r,changedParams:o,blueprintManagerId:i,reasons:Object.entries(this.reasons).reduce(((e,[t,r])=>[...e,`${t}: ${r}`]),[]).join(", ")}}formatItemsIfNeeded(e,t){const r=t;let i,a=!1;return((e,t)=>{if(e===t)return this.reasons.itemsAdded="items are the same object.",!1;if(!e)return this.reasons.itemsAdded="new items do not exist.",!1;if(!t||t&&0===t.length)return this.reasons.itemsAdded="old items do not exist.",!1;if(t.length>=e.length)return this.reasons.itemsAdded="more old items than new items.",!1;const r=t.reduce(((t,r,i)=>t&&r.id===e[i].itemId),!0);return r||(this.reasons.itemsAdded="items ids were changed. "),r})(e,r)?(i=r.concat(e.slice(r.length).map((e=>v.convertDtoToLayoutItem(e)))),this.gettingMoreItems=!1,a=!0):((e,t)=>e===t?(this.reasons.items="items are the same object.",!1):e?!t||t&&0===t.length?(this.reasons.items="old items do not exist.",!0):t.length!==e.length?(this.reasons.items="more new items than old items (or vice versa).",!0):e.some(((e,r)=>{const i=t[r];try{const t=!e||!i||e.itemId!==i.itemId||e.mediaUrl!==i.mediaUrl||e.measured!==i.measured||e.metaData&&i.metaData&&(e.metaData.type!==i.metaData.type||e.metaData.title!==i.metaData.title||e.metaData.description!==i.metaData.description)||e.metaData&&"text"===e.metaData.type&&i.metaData&&"text"===i.metaData.type&&(e.metaData.width!==i.metaData.width||e.metaData.height!==i.metaData.height||e.metaData.html!==i.metaData.html||e.metaData.textStyle!==i.metaData.textStyle||e.metaData.editorHtml!==i.metaData.editorHtml);return t&&(this.reasons.items=`items #${r} id was changed.`),t}catch(e){return this.reasons.items="an error occured",!0}}),!1):(this.reasons.items="new items do not exist.",!1))(e,r)&&(i=e.map((e=>Object.assign(v.convertDtoToLayoutItem(e)))),this.gettingMoreItems=!1,a=!0),{formattedItems:i,changed:a}}formatOptionsIfNeeded(e,t,r){let i,a=!1;if(((e,t)=>{if(!e)return this.reasons.options="no new options.",!1;if(!t)return this.reasons.options="no old options.",!0;try{const r={};Object.keys(t).sort().forEach((e=>r[e]=t[e]));const i={};Object.keys(e).sort().forEach((t=>i[t]=e[t]));const a=JSON.stringify(i)!==JSON.stringify(r);return a&&(this.reasons.options="options were changed."),a}catch(e){return console.error("Could not compare options",e),!1}})(e,t)){const t=function(e){const t=Object.assign({},T,e);return Object.keys(t).forEach((e=>{void 0===t[e]&&(t[e]=T[e])})),t}(e);i=z(oe(t),r),a=!0}return{formattedOptions:i,changed:a}}formatContainerIfNeeded(e,t,r,i,a){let o=!1;let s;return(a||(({newContainerParams:e,oldContainerParams:t,oldOptions:r})=>{if(!r||!t)return this.reasons.container="no old container or options. ",!0;if(!e)return this.reasons.container="no new container.",!1;const a={height:!n.Z.isHeightSetByGallery(i)&&(!!e.height&&e.height!==t.height),width:!t||!!e.width&&e.width!==t.width};return Object.keys(a).reduce(((e,t)=>(a[t]&&(this.reasons.container+=`container.${t} has changed. `),e||a[t])),!1)})({newContainerParams:e,oldContainerParams:t,oldOptions:r}))&&(le.updateParams({options:i,container:e}),o=!0,s=Object.assign({},e,le.getGalleryDimensions())),{formattedContainer:s,changed:o}}createStructure({formattedContainer:e,formattedOptions:t,formattedItems:r}){const i={items:r,container:e,styleParams:t,options:{showAllItems:!0,skipVisibilitiesCalc:!0,useLayoutStore:!1}};return i.options.createLayoutOnInit=!1,this.layouter=new I(i),this.layouter.createLayout(i)}},ce=r(47458);class he{constructor({id:e}){this.id=e+"'s blueprintsManager",this.currentState={},this.existingBlueprint={},this.lastBlueprintId=0,this.cache={},this.api={},this.currentState.totalItemsCount=1/0,this.onBlueprintReady=()=>{},this.loopingItems=!1}init(e){this.api=e.api,this.currentState.totalItemsCount=e&&e.totalItemsCount||this.currentState.totalItemsCount,ce.Ce.setDeviceType(e.deviceType)}setCurrentBlueprint(e){this.lastBlueprintId=e}async createBlueprint(e={}){const t=Math.floor(1e3*Math.random());this.currentState.totalItemsCount=e.totalItemsCount||this.api.getTotalItemsCount&&this.api.getTotalItemsCount()||this.currentState.totalItemsCount,this.currentState.isUsingCustomInfoElements=e.isUsingCustomInfoElements||this.api.isUsingCustomInfoElements&&this.api.isUsingCustomInfoElements()||this.currentState.isUsingCustomInfoElements,e=Object.assign(Object.assign({},e),await this.completeParams(e)),e=this.duplicateItemsForSlideshowLoopIfNeeded(e);const{blueprintManagerId:r,blueprint:i,changedParams:a,reasons:o}=await(async e=>(this.setCurrentBlueprint(e.blueprintManagerId),this.api.createBlueprintImp?await this.api.createBlueprintImp(e):await ue.createBlueprint(e)))({params:e,lastParams:this.currentState,existingBlueprint:this.existingBlueprint,blueprintManagerId:this.id+t,isUsingCustomInfoElements:this.currentState.isUsingCustomInfoElements});if(r!==this.lastBlueprintId)return;const s=Object.values(a).some((e=>!!e)),n=Object.keys(i).length>0;return this.updateLastParamsIfNeeded(e,a,n),await new Promise((e=>setTimeout(e,0))),n&&this.api.onBlueprintReady&&this.api.onBlueprintReady({blueprint:i,blueprintChanged:s,reasons:o}),this.cache[e]=this.existingBlueprint=i}async getMoreItems(e){let t;e!!e)),o=Object.keys(t).length>0;return this.updateLastParamsIfNeeded(e,r,o),o&&this.api.onBlueprintReady&&this.api.onBlueprintReady({blueprint:t,blueprintChanged:a,reasons:i,initialBlueprint:!0}),o&&(this.cache[e]=this.existingBlueprint=t)}createSingleBlueprint(e={}){let{isUsingCustomInfoElements:t}=e;const{blueprint:r}=ue.createBlueprint({params:e,lastParams:{},existingBlueprint:{},blueprintManagerId:this.id+"_singleBlueprint",isUsingCustomInfoElements:t});return r}duplicateGalleryItems({items:e,duplicateFactor:t=1}){const r=(e=e||this.currentState.items).slice(0,this.currentState.totalItemsCount);for(let i=0;i{let t=!0;return e&&Object.keys(e).length>0&&(t=!1),t})(e)&&(e=this.api.fetchContainer&&await this.api.fetchContainer()||this.currentState.container),e}async fetchItemsIfNeeded(e){return(e=>{let t=!0;return e&&e.length>0&&(t=!1),t})(e)&&(e=!this.loopingItems&&this.api.fetchItems&&await this.api.fetchItems()||this.currentState.items),e}async fetchOptionsIfNeeded(e){return(e=>{let t=!0;return e&&Object.keys(e).length>0&&(t=!1),t})(e)&&(e=this.api.fetchOptions&&await this.api.fetchOptions()||this.currentState.options),e}updateLastParamsIfNeeded({items:e,container:t,options:r},i,a){a&&(this.currentState.items=i.itemsChanged?e:this.currentState.items,this.currentState.container=i.containerChanged?Object.assign({},t):this.currentState.container,this.currentState.options=i.optionsChanged?Object.assign({},r):this.currentState.options)}needMoreItems(e){this.getMoreItems(e)}}class me extends o().Component{render(){if("true"!==n.Z.getTopUrlParam("pgdebug"))return!1;const e=o().createElement("div",{className:"version-header "},"Pro Gallery Version #",Z.Z.staticsVersion);let t="";try{t=" psw"+Z.Z.top.screen.width+" piw"+Z.Z.top.innerWidth+" pbw"+Z.Z.top.document.body.clientWidth}catch(e){}const r=o().createElement("div",{className:"version-header "},n.Z.isLandscape()?"land":"port"," sw",Z.Z.screen.width,"sh",Z.Z.screen.height," iw",Z.Z.innerWidth," bw",Z.Z.document.body.clientWidth," sr","1","rc",this.props.resizeCount," oc",this.props.orientationCount," nh",this.props.newHeight," lh",this.props.lastHeight,t,"www",this.props.maxGalleryWidth);return o().createElement("div",null,e,r)}}var pe=me,de=r(10651);class ye extends o().Component{constructor(e){super(e),this.imageRef=null}componentDidMount(){var e;(null===(e=this.imageRef)||void 0===e?void 0:e.complete)&&"function"==typeof this.props.onLoad&&this.props.onLoad()}render(){const e=this.props,{customImageRenderer:t}=e,r=(0,i.__rest)(e,["customImageRenderer"]);return"function"==typeof t?t(this.props):"string"==typeof this.props.src?o().createElement("img",Object.assign({ref:e=>{this.imageRef=e},alt:this.props.alt},r)):"object"==typeof this.props.src?o().createElement("picture",{id:`multi_picture_${this.props.id}`,key:`multi_picture_${this.props.id}`},this.props.src.map(((e,t)=>e.forPrinting?o().createElement(de.k,{key:`print-only-image-${t}`,srcSet:e.dpr,type:`image/${e.type}`}):o().createElement("source",{key:`image-source-${t}`,srcSet:e.dpr||e.url,type:`image/${e.type}`}))),o().createElement("img",Object.assign({ref:e=>{this.imageRef=e},alt:this.props.alt},r,{src:this.props.src[this.props.src.length-1].url}))):null}}var ge=ye;class _e extends o().Component{constructor(e){super(e),this.getImageContainer=this.getImageContainer.bind(this),this.getImageContainerClassNames=this.getImageContainerClassNames.bind(this),this.state={isHighResImageLoaded:!1},this.handleHighResImageLoad=this.handleHighResImageLoad.bind(this)}componentDidMount(){try{"function"==typeof this.props.actions.setItemLoaded&&this.props.actions.setItemLoaded()}catch(e){console.error(e)}}handleHighResImageLoad(){this.setState({isHighResImageLoaded:!0});try{this.props.actions.setItemLoaded()}catch(e){console.error("Failed to load high res image",e)}}getImageContainerClassNames(){const{isCurrentHover:e,options:t}=this.props,{isHighResImageLoaded:r}=this.state;return["gallery-item-content",e?"item-content-hover":"item-content-regular","image-item","gallery-item-visible","gallery-item","gallery-item-preloaded",t[l.Z.layoutParams.crop.enable]&&t[l.Z.layoutParams.crop.method]===s.Z[l.Z.layoutParams.crop.method].FIT?"grid-fit":"",t[l.Z.behaviourParams.item.content.loader]===s.Z[l.Z.behaviourParams.item.content.loader].COLOR?"load-with-color "+(r?"image-loaded":""):""].join(" ")}getImageContainer(e,t,r){const{imageDimensions:i,id:a,actions:s}=this.props;return o().createElement("div",{className:t,onTouchStart:s.handleItemMouseDown,onTouchEnd:s.handleItemMouseUp,key:"image_container-"+a,"data-hook":"image-item",style:i},e(),r)}getImageAnimationOverlay(){const{imageDimensions:e,options:t,createUrl:r,id:i}=this.props;let a=null;switch(t[l.Z.behaviourParams.gallery.scrollAnimation]){case s.Z[l.Z.behaviourParams.gallery.scrollAnimation].BLUR:a=r(s.Z.urlSizes.RESIZED,s.Z.urlTypes.LOW_RES);break;case s.Z[l.Z.behaviourParams.gallery.scrollAnimation].MAIN_COLOR:a=r(s.Z.urlSizes.PIXEL,s.Z.urlTypes.HIGH_RES)}return a&&o().createElement("div",{key:"image_container-overlay-"+i,"data-hook":"image-item-overlay",style:Object.assign(Object.assign({},e),{backgroundImage:`url(${a})`,backgroundSize:"cover",pointerEvents:"none",position:"absolute",top:0,left:0})})}getImageElement(){const{alt:e,imageDimensions:t,createUrl:r,id:a,idx:u,settings:c={},options:h}=this.props,{isHighResImageLoaded:m}=this.state,p=c&&c.imageProps&&"function"==typeof c.imageProps?c.imageProps(a):{},{marginLeft:d,marginTop:y}=t,g=(0,i.__rest)(t,["marginLeft","marginTop"]);return()=>{var t,i,c;const d=[],y="string"==typeof e?e:"untitled image",_=n.Z.isMobile()&&this.props.options[l.Z.behaviourParams.gallery.blockContextMenu]?{WebkitUserSelect:"none",WebkitTouchCallout:"none"}:{},v=this.props.isPrerenderMode?{width:"100%",height:"100%"}:{};if(!m){let e=null;const n=Object.assign({className:"gallery-item-visible gallery-item gallery-item-preloaded",key:"gallery-item-image-img-preload","data-hook":"gallery-item-image-img-preload",loading:"eager"},p);switch(h[l.Z.behaviourParams.item.content.loader]){case s.Z[l.Z.behaviourParams.item.content.loader].BLUR:e=o().createElement(ge,Object.assign({alt:y,key:"image_preload_blur-"+a,src:r(s.Z.urlSizes.RESIZED,s.Z.urlTypes.LOW_RES),style:Object.assign(Object.assign(Object.assign({},g),v),_)},n,{customImageRenderer:null===(t=this.props.customComponents)||void 0===t?void 0:t.customImageRenderer}));break;case s.Z[l.Z.behaviourParams.item.content.loader].MAIN_COLOR:e=o().createElement(ge,Object.assign({alt:y,key:"image_preload_main_color-"+a,src:r(s.Z.urlSizes.PIXEL,s.Z.urlTypes.HIGH_RES),style:Object.assign(Object.assign(Object.assign({},g),v),_)},n,{customImageRenderer:null===(i=this.props.customComponents)||void 0===i?void 0:i.customImageRenderer}))}d.push(e)}const P=!this.props.isPrerenderMode,f=h[l.Z.stylingParams.itemResolutionMode]===s.Z[l.Z.stylingParams.itemResolutionMode].FULL?s.Z.urlSizes.FULL:s.Z.urlSizes.MULTI,b=r(f,s.Z.urlTypes.HIGH_RES),I=o().createElement(ge,Object.assign({key:"image_highres-"+a,className:"gallery-item-visible gallery-item gallery-item-preloaded","data-hook":"gallery-item-image-img","data-idx":u,src:b,alt:y,tabIndex:"0",onLoad:this.handleHighResImageLoad,loading:this.props.isPrerenderMode?"lazy":"eager",style:Object.assign(Object.assign(Object.assign({},g),_),!P&&v)},p,{customImageRenderer:null===(c=this.props.customComponents)||void 0===c?void 0:c.customImageRenderer}));return d.push(I),d}}render(){const e=this.getImageElement(),t=`${this.getImageContainerClassNames()} ${this.props.extraClasses||""}`,r=this.props.overlay||this.getImageAnimationOverlay();return this.getImageContainer(e,t,r)}}var ve=_e;var Pe=function(e){return class extends a.Component{constructor(e){super(e),this.onMouseMove=this.onMouseMove.bind(this),this.onMouseDown=this.onMouseDown.bind(this),this.onMouseUp=this.onMouseUp.bind(this),this.isMagnifiedBiggerThanContainer=this.isMagnifiedBiggerThanContainer.bind(this),this.toggleMagnify=this.toggleMagnify.bind(this),this.getMagnifyInitialPos=this.getMagnifyInitialPos.bind(this),this.getBoundrys=this.getBoundrys.bind(this),this.getMagnifiedDimensions=this.getMagnifiedDimensions.bind(this),this.containerRef=null,this.state={shouldMagnify:!1,x:0,y:0}}onDragStart(e){e.preventDefault()}onMouseMove(e){if(this.dragStarted){const{magnifiedWidth:t,magnifiedHeight:r}=this.getMagnifiedDimensions();this.isDragging=!0;const{cubedWidth:i,cubedHeight:a}=this.props.style,{clientY:o,clientX:s}=e,{boundryY:n,boundryX:l}=this.getBoundrys();this.setState({x:Math.max(-l,Math.min(this.dragStartX-s,t-i)),y:Math.max(-n,Math.min(this.dragStartY-o,r-a))})}}onMouseDown(e){const{clientX:t,clientY:r}=e,{x:i,y:a,shouldMagnify:o}=this.state;o?(this.dragStartX=i+t,this.dragStartY=a+r,this.dragStarted=!0):this.setState(this.getMagnifyInitialPos(e))}onMouseUp(){this.isDragging||this.toggleMagnify(),this.dragStarted=!1,this.isDragging=!1}toggleMagnify(e){const{shouldMagnify:t}=this.state;"boolean"==typeof e?this.setState({shouldMagnify:e}):this.setState({shouldMagnify:!t})}getMagnifiedDimensions(){const{style:{innerHeight:e,innerWidth:t}}=this.props,r=this.props.options[l.Z.behaviourParams.item.content.magnificationValue];return{magnifiedHeight:e*r,magnifiedWidth:t*r}}getPreloadImage(){var e;const{createUrl:t,id:r,style:i,imageDimensions:a,options:n}=this.props,{innerWidth:u,innerHeight:c}=i,{marginTop:h,marginLeft:m}=a,{shouldMagnify:p,x:d,y:y}=this.state,g=n[l.Z.behaviourParams.item.content.magnificationValue],_=t(s.Z.urlSizes.RESIZED,s.Z.urlTypes.HIGH_RES),v=p?g:1;return o().createElement(ge,{alt:"",key:"magnified-item-preload-"+r,className:"magnified-item-preload",src:_,style:{width:u,height:c,position:"relative",zIndex:1,opacity:p?1:0,transform:`scale(${v})`,transformOrigin:`${(d+m)/(g-1)}px ${(y+h)/(g-1)}px`,transition:"transform 0.3s ease"+(p?"":", opacity 0.1s ease 0.3s")},customImageRenderer:null===(e=this.props.customComponents)||void 0===e?void 0:e.customImageRenderer})}getHighResImage(){var e;const{createMagnifiedUrl:t,id:r,alt:i,options:a,isPrerenderMode:s}=this.props,{magnifiedWidth:n,magnifiedHeight:u}=this.getMagnifiedDimensions(),c=t(a[l.Z.behaviourParams.item.content.magnificationValue]);return o().createElement(ge,{key:`magnified-item-${r}`,className:"magnified-item","data-hook":"magnified-item",src:c,alt:"string"==typeof i?i:"untitled image",id:r,isPrerenderMode:s,style:{width:n,height:u,position:"absolute"},customImageRenderer:null===(e=this.props.customComponents)||void 0===e?void 0:e.customImageRenderer})}isMagnifiedBiggerThanContainer(e){const{magnifiedWidth:t,magnifiedHeight:r}=this.getMagnifiedDimensions(),{cubedWidth:i,cubedHeight:a}=e;return ithis.containerRef=e,className:"magnified-item-container",style:this.getContainerStyle(),onDragStart:this.onDragStart,onMouseMove:this.onMouseMove,onMouseDown:this.onMouseDown,onMouseUp:this.onMouseUp},o().createElement(e,Object.assign({},this.props)),this.getPreloadImage(),o().createElement("div",{className:"magnified-images",style:this.getMagnifiedImageStyle()},t&&this.getHighResImage()))}}},fe=Pe(ve),be=r(21618);var Ie=({url:e,dimensions:t})=>o().createElement("iframe",{"data-hook":"video-iframe-placeholder",className:"gallery-item-content video-iframe-placeholder",title:"pro-gallery-video",style:Object.assign({},t),allow:"fullscreen",src:e,allowFullScreen:!0,loading:"lazy"});const Se=e=>"video"===e?o().createElement(be.U,{type:"videoPlayButton",size:60}):"3d"===e?o().createElement(be.U,{type:"rotateArrow",size:60}):o().createElement(o().Fragment,null);function Ee(e){const{hasLink:t,options:r,imageDimensions:i,showPlayButton:u,MediaImplementation:c,enableImagePlaceholder:h,isVideoPlaceholder:m,videoPlaceholderUrl:p}=e,{behaviourParams_item_clickAction:d,behaviourParams_item_video_playTrigger:y}=r,g=(0,a.useMemo)((()=>!n.Z.isSSR()&&(y===s.Z[l.Z.behaviourParams.item.video.playTrigger].HOVER||y===s.Z[l.Z.behaviourParams.item.video.playTrigger].AUTO||(d===s.Z[l.Z.behaviourParams.item.clickAction].NOTHING||d===s.Z[l.Z.behaviourParams.item.clickAction].MAGNIFY||d===s.Z[l.Z.behaviourParams.item.clickAction].LINK&&!t))),[t,y,d]),_=(t={})=>h?o().createElement(ve,Object.assign({},e,{imageDimensions:i,id:e.idx,overlay:u&&!g&&Se(e.type),extraClasses:e.placeholderExtraClasses.join(" ")},t)):o().createElement(o().Fragment,null),v=_(),P=o().createElement(Ie,{dimensions:i,url:m?p:e.videoUrl}),f=o().createElement(o().Fragment,null,v,P,e.hover);return!g||e.isPrerenderMode?f:(0,ce.wh)()?o().createElement(o().Fragment,null,v,e.hover):o().createElement(o().Suspense,{fallback:f},o().createElement(c,Object.assign({},e,{thumbnail:v,placeholder:f,thumbnailWithOverride:_})))}const Oe=o().lazy((()=>r.e(65381).then(r.bind(r,69677))));function Te(e){const{options:t}=e,r=t[l.Z.behaviourParams.item.threeDimensionalScene.playTrigger],i=t[l.Z.behaviourParams.item.threeDimensionalScene.enablePlayButton];return o().createElement(Ee,Object.assign({},e,{MediaImplementation:Oe,playTrigger:r,placeholderExtraClasses:["gallery-item-3d-placeholder"],enableImagePlaceholder:!0,showPlayButton:i}))}var Ze=e=>t=>{const{itemWasHovered:r,isCurrentHover:i,hasSecondaryMedia:a,secondaryMediaItem:n}=t;if(t.options[l.Z.behaviourParams.item.secondaryMedia.trigger]===s.Z[l.Z.behaviourParams.item.secondaryMedia.trigger].OFF||!a)return o().createElement(e,Object.assign({},t));return o().createElement("div",{className:"item-with-secondary-media-container"},o().createElement(e,Object.assign({},t)),o().createElement("div",{className:["secondary-media-item",i?"show":"hide"].join(" ")},r&&o().createElement(e,Object.assign({},(()=>{const{createUrl:e,createMagnifiedUrl:r,style:i,html:a}=n;return Object.assign(Object.assign({},t),{style:i,html:a,createUrl:e,createMagnifiedUrl:r})})()))))};class Le extends o().Component{constructor(e){super(e),"function"==typeof this.props.actions.setItemLoaded&&this.props.actions.setItemLoaded()}getTextDimensions(){const{style:e,options:t,cropRatio:r,imageDimensions:i}=this.props,a=e.ratio[1/0,1/0],this.inScreenPadding=()=>[0,0],this.aboveScreenPadding=()=>[0,1/0],this.justBelowScreenPadding=e=>[1/0,-1*(e+this.screenSize)],this.justBelowAndAboveScreenPadding=()=>[2560,1/0],this.justBelowAndInScreenPadding=()=>[5120,0],this.belowScreenPadding=()=>[1/0,0],this.highResPadding=()=>[5120,1/0],this.lowResPadding=()=>[10240,1/0]}getSellectorDomId({id:e,idx:t}){return`pgi${String(e).replace(/[\W]+/g,"")}_${t}`}buildScrollClassName(e,t,r){const i=String(e).replace(/[\W]+/g,"").slice(-8);return`${this.pgScrollClassName}_${i}_${r}-${this.pgScrollSteps[t]+Number(r)}`}calcScrollClasses(e,t){return`${this.pgScrollClassName}-${t} `+this.pgScrollSteps.map(((r,i)=>this.buildScrollClassName(e,i,Math.floor(t/r)*r))).join(" ")}calcScrollCss({id:e,items:t,options:r,container:i}){if(n.Z.isVerbose()&&console.time("CSS Scroll"),!t||!t.length)return[];if(r[l.Z.behaviourParams.gallery.scrollAnimation]===s.Z[l.Z.behaviourParams.gallery.scrollAnimation].NO_EFFECT)return[];this.screenSize=r[l.Z.layoutParams.structure.scrollDirection]===s.Z[l.Z.layoutParams.structure.scrollDirection].HORIZONTAL?Math.min(Z.Z.outerWidth,Z.Z.screen.width,i.galleryWidth):Math.min(Z.Z.outerHeight,Z.Z.screen.height),r[l.Z.layoutParams.structure.scrollDirection]===s.Z[l.Z.layoutParams.structure.scrollDirection].VERTICAL&&n.Z.isMobile()&&(this.screenSize+=50),this.calcScrollPaddings();const[a]=t.slice(-1),{top:o,right:u}=a.offset,c=this.pgScrollSteps[0];this.minHeight=0-c,this.maxHeight=(Math.ceil(((r[l.Z.layoutParams.structure.scrollDirection]===s.Z[l.Z.layoutParams.structure.scrollDirection].HORIZONTAL?u:o)+this.screenSize)/c)+1)*c;const h=t.map((t=>this.calcScrollCssForItem({id:e,item:t,options:r})));return n.Z.isVerbose()&&console.timeEnd("CSS Scroll"),h}shouldCalcScrollCss({type:e}){return"video"!==e&&"text"!==e&&"3d"!==e}createScrollSelectorsFunction({id:e,item:t,options:r}){const i=r[l.Z.layoutParams.structure.scrollDirection]===s.Z[l.Z.layoutParams.structure.scrollDirection].HORIZONTAL?t.offset.left-this.screenSize:t.offset.top-this.screenSize,a=r[l.Z.layoutParams.structure.scrollDirection]===s.Z[l.Z.layoutParams.structure.scrollDirection].HORIZONTAL?t.offset.left+t.width:t.offset.top+t.height,o=this.pgScrollSteps[this.pgScrollSteps.length-1],n=(e,t)=>Math.ceil(Math.min(this.maxHeight,e)/t)*t,u=(e,t)=>Math.floor(Math.max(this.minHeight,e)/t)*t,c=this.getSellectorDomId(t);return(t,r)=>{const[s,l]=t;if(s===1/0&&l===1/0)return`#pro-gallery-${e} #${c} ${r}`;let h=u(i-s,o);const m=n(a+l,o),p=[];for(;hh%e==0&&h+e<=m));if(-1===i){console.error("largestDividerIdx is -1. Couldn't find index in pgScrollSteps array.\nfrom =",h,"\nto =",m,"\npadding[0] =",t[0],"\npadding[1] =",t[1]);break}p.push(`.${this.buildScrollClassName(e,i,h)} ~ div #${c} ${r}`),h+=this.pgScrollSteps[i]}return p.join(", ")}}calcScrollCssForItem({id:e,item:t,options:r}){const{idx:i}=t;let a="";const o=this.createScrollSelectorsFunction({id:e,item:t,options:r});return a+=this.createScrollAnimationsIfNeeded({idx:i,item:t,options:r,createScrollSelectors:o}),this.scrollCss[i]=a||this.scrollCss[i],this.scrollCss[i]}createScrollAnimationsIfNeeded({idx:e,options:t,createScrollSelectors:r}){const i=t[l.Z.behaviourParams.gallery.scrollAnimation],{NO_EFFECT:a,FADE_IN:o,GRAYSCALE:n,SLIDE_UP:u,EXPAND:c,SHRINK:h,ZOOM_OUT:m,ONE_COLOR:p,MAIN_COLOR:d,BLUR:y}=s.Z[l.Z.behaviourParams.gallery.scrollAnimation],g=t[l.Z.behaviourParams.gallery.layoutDirection]===s.Z[l.Z.behaviourParams.gallery.layoutDirection].RIGHT_TO_LEFT,_=t[l.Z.layoutParams.structure.scrollDirection];if(i===a)return"";const v=100*(e%3+1),P=100*(e%3+1),f=this.allPagePadding(),b=this.aboveScreenPadding();let I="";if(i!==d&&i!==y||(I+=r(f,' [data-hook="image-item-overlay"]')+`{filter: opacity(1); transition: filter 1.${P}s ease-in ${v}ms !important;}`,I+=r(b,' [data-hook="image-item-overlay"]')+"{filter: opacity(0) !important;}"),i===o&&(I+=r(f,"")+`{filter: opacity(0); transition: filter 1.${P}s ease-in !important;}`,I+=r(b,"")+"{filter: opacity(1) !important;}"),i===n&&(I+=r(f," .gallery-item-wrapper")+`{filter: grayscale(100%); transition: filter 1.${200+P}s ease-in !important;}`,I+=r(b," .gallery-item-wrapper")+"{filter: grayscale(0) !important;}"),i===u){const e=_===s.Z[l.Z.layoutParams.structure.scrollDirection].HORIZONTAL?"X":"Y",t=g?"-":"";I+=r(f,"")+`{transform: translate${e}(${t}100px); transition: transform 0.8s cubic-bezier(.13,.78,.53,.92) !important;}`,I+=r(b,"")+`{transform: translate${e}(0) !important;}`}if(i===c&&(I+=r(f,"")+`{transform: scale(0.95); transition: transform 1s cubic-bezier(.13,.78,.53,.92) ${v}ms !important;}`,I+=r(b,"")+"{transform: scale(1) !important;}"),i===h&&(I+=r(f,"")+`{transform: scale(1.05); transition: transform 1s cubic-bezier(.13,.78,.53,.92) ${v}ms !important;}`,I+=r(b,"")+"{transform: scale(1) !important;}"),i===m&&(I+=r(f," .gallery-item-wrapper")+`{transform: scale(1.1); transition: transform 1.2s cubic-bezier(.13,.78,.53,.92) ${v}ms !important;}`,I+=r(b," .gallery-item-wrapper")+"{transform: scale(1) !important;}"),i===p){const e=t.oneColorAnimationColor&&t.oneColorAnimationColor.value?t.oneColorAnimationColor.value:"transparent";I+=r(f,"")+`{background-color: ${e};}`,I+=r(f," .gallery-item-wrapper")+`{filter: opacity(0); transition: filter 0.${600+P}s ease-in !important;}`,I+=r(b," .gallery-item-wrapper")+"{filter: opacity(1) !important;}"}return I}};function Ce(e){return Object.assign({},(e[l.Z.layoutParams.info.layout]===s.Z[l.Z.layoutParams.info.layout].ATTACHED_BACKGROUND||s.Z.hasHoverPlacement(e[l.Z.layoutParams.info.placement]))&&Object.assign(Object.assign({},xe(e[l.Z.stylingParams.itemBorderRadius],e[l.Z.stylingParams.itemBorderWidth],e[l.Z.stylingParams.itemBorderColor])),function(e){let t={};if(e[l.Z.stylingParams.itemEnableShadow]){const r=e[l.Z.stylingParams.itemShadowBlur],i=e[l.Z.stylingParams.itemShadowDirection],a=e[l.Z.stylingParams.itemShadowSize],o=-1*(Number(i)-90)/360*2*Math.PI;t={boxShadow:`${Math.round(a*Math.cos(o))}px ${Math.round(-1*a*Math.sin(o))}px ${r}px ${n.Z.formatColor(e[l.Z.stylingParams.itemShadowOpacityAndColor])}`}}return t}(e)))}function Ne(e){return Object.assign({},!s.Z.hasHoverPlacement(e[l.Z.layoutParams.info.placement])&&(e[l.Z.layoutParams.info.layout]===s.Z[l.Z.layoutParams.info.layout].NO_BACKGROUND||e[l.Z.layoutParams.info.layout]===s.Z[l.Z.layoutParams.info.layout].SEPARATED_BACKGROUND)&&Object.assign({},xe(e[l.Z.stylingParams.itemBorderRadius],e[l.Z.stylingParams.itemBorderWidth],e[l.Z.stylingParams.itemBorderColor])))}function xe(e,t,r){return Object.assign(Object.assign({overflow:"hidden"},e>0&&{borderRadius:e}),t>0&&{borderWidth:t+"px",borderColor:n.Z.formatColor(r),borderStyle:"solid"})}function De(e,t,r,i){const a=Object.assign(Object.assign({},s.Z.hasExternalHorizontalPlacement(e)&&{height:r,float:s.Z.isExternalRightPlacement(e)?"right":"left"}),s.Z.hasExternalVerticalPlacement(e)&&{height:i,boxSizing:"content-box"});return t[l.Z.layoutParams.info.layout]===s.Z[l.Z.layoutParams.info.layout].SEPARATED_BACKGROUND?Object.assign(Object.assign(Object.assign(Object.assign({},a),xe(t[l.Z.layoutParams.info.border.radius],t[l.Z.layoutParams.info.border.width],t[l.Z.layoutParams.info.border.color])),s.Z.hasExternalAbovePlacement(e)&&{marginBottom:t[l.Z.layoutParams.info.spacing]}),s.Z.hasExternalBelowPlacement(e)&&{marginTop:t[l.Z.layoutParams.info.spacing]}):a}function Me(e,t,r,i){const a=Object.assign(Object.assign({},(t[l.Z.layoutParams.info.layout]===s.Z[l.Z.layoutParams.info.layout].SEPARATED_BACKGROUND||t[l.Z.layoutParams.info.layout]===s.Z[l.Z.layoutParams.info.layout].ATTACHED_BACKGROUND)&&t.textBoxFillColor&&t.textBoxFillColor.value&&{backgroundColor:t.textBoxFillColor.value}),{overflow:"hidden",boxSizing:"border-box"}),o=s.Z.hasExternalVerticalPlacement(e),n=s.Z.hasExternalHorizontalPlacement(e);return Object.assign(Object.assign(Object.assign({},a),o&&function(e,t){return{width:"100%",height:t}}(0,r)),n&&function(e,t){return{height:"100%",width:t}}(0,i))}const Ge=n.Z.isiOS(),He=o().lazy((()=>r.e(86158).then(r.bind(r,56487))));class ke extends o().Component{render(){const e=(((t=this.props).videoUrl||t.url).includes("youtube.com")||(t.videoUrl||t.url).includes("youtu.be"))&&Ge;var t;return o().createElement(He,Object.assign({},this.props,{loadVideo:this.props.shouldPlay||e,videoPlaceholder:this.props.thumbnail,videoPlayButton:this.props.showPlayButton&&o().createElement(be.U,{type:"videoPlayButton",size:60})}))}}class Be extends o().Component{render(){const e=this.props.options[l.Z.behaviourParams.item.video.enablePlayButton];return o().createElement(Ee,Object.assign({},this.props,{MediaImplementation:ke,enableImagePlaceholder:(0,Ae.WT)(this.props.options),showPlayButton:e,placeholderExtraClasses:["video-item","gallery-item-video"]}))}}var ze=Be;function Fe(e){return Object.assign(Object.assign({},e),{isMobile:n.Z.isMobile()})}const Ue=({idx:e,activeIndex:t,options:r},i=!1)=>{const{[l.Z.behaviourParams.gallery.horizontal.slideAnimation]:a}=r,o=r[l.Z.behaviourParams.gallery.layoutDirection]===s.Z[l.Z.behaviourParams.gallery.layoutDirection].RIGHT_TO_LEFT;switch(a){case s.Z[l.Z.behaviourParams.gallery.horizontal.slideAnimation].FADE:return"fade fade-"+(t===e?"visible":"hidden");case s.Z[l.Z.behaviourParams.gallery.horizontal.slideAnimation].DECK:return te?"deck-before"+(o?"-rtl":""):{};default:return{}}},We=Ze(fe),Ve=Ze(Le);class je extends o().Component{constructor(e){super(e),this.itemContainer=o().createRef(),this.shouldUseDirectLink=()=>{const{directLink:e}=this.props,{url:t,target:r}=e||{},i=!(!t||!r||this.props.options[l.Z.behaviourParams.item.clickAction]!==s.Z[l.Z.behaviourParams.item.clickAction].LINK);return this.shouldShowHoverOnMobile()&&this.isClickOnCurrentHoveredItem()&&i?(this.props.actions.eventsListener(s.Z.events.HOVER_SET,-1),!0):!(!i||this.shouldShowHoverOnMobile())},this.isClickOnCurrentHoveredItem=()=>this.state.isCurrentHover||this.props.options[l.Z.behaviourParams.item.overlay.hoveringBehaviour]===s.Z[l.Z.behaviourParams.item.overlay.hoveringBehaviour].ALWAYS_SHOW,this.props.actions.eventsListener(s.Z.events.ITEM_CREATED,this.props),this.init(),this.state={isCurrentHover:!1,itemWasHovered:!1},this.activeElement=""}init(){this.onItemClick=this.onItemClick.bind(this),this.onItemWrapperClick=this.onItemWrapperClick.bind(this),this.onItemInfoClick=this.onItemInfoClick.bind(this),this.onAnchorKeyDown=this.onAnchorKeyDown.bind(this),this.onContainerKeyUp=this.onContainerKeyUp.bind(this),this.handleItemMouseDown=this.handleItemMouseDown.bind(this),this.handleItemMouseUp=this.handleItemMouseUp.bind(this),this.setItemLoaded=this.setItemLoaded.bind(this),this.isHighlight=this.isHighlight.bind(this),this.getItemHover=this.getItemHover.bind(this),this.getImageItem=this.getImageItem.bind(this),this.getVideoItem=this.getVideoItem.bind(this),this.getTextItem=this.getTextItem.bind(this),this.getItemInner=this.getItemInner.bind(this),this.getItemContainerStyles=this.getItemContainerStyles.bind(this),this.getItemWrapperStyles=this.getItemWrapperStyles.bind(this),this.getItemAriaLabel=this.getItemAriaLabel.bind(this),this.getItemContainerClass=this.getItemContainerClass.bind(this),this.getItemWrapperClass=this.getItemWrapperClass.bind(this),this.getItemContainerTabIndex=this.getItemContainerTabIndex.bind(this),this.isIconTag=this.isIconTag.bind(this),this.onMouseEnter=this.onMouseEnter.bind(this),this.onMouseLeave=this.onMouseLeave.bind(this),this.onFocus=this.onFocus.bind(this),this.onBlur=this.onBlur.bind(this),this.checkIfCurrentHoverChanged=this.checkIfCurrentHoverChanged.bind(this),this.shouldHoverWithoutOverlayAndClickOnMobile=this.shouldHoverWithoutOverlayAndClickOnMobile.bind(this)}setItemLoaded(){this.props.actions.eventsListener(s.Z.events.ITEM_LOADED,this.props),this.setState({loaded:!0})}isIconTag(e){return["button","i","a","svg","path"].indexOf(e.toLowerCase())>=0}onMouseEnter(){n.Z.isMobile()||this.props.actions.eventsListener(s.Z.events.HOVER_SET,this.props.idx)}onMouseLeave(){n.Z.isMobile()||this.props.actions.eventsListener(s.Z.events.HOVER_SET,-1)}onFocus(){var e;(null===(e=this.props.settings)||void 0===e?void 0:e.isAccessible)&&this.props.actions.eventsListener(s.Z.events.HOVER_SET,this.props.idx),this.props.actions.eventsListener(s.Z.events.ITEM_FOCUSED,this.props)}onBlur(){var e;(null===(e=this.props.settings)||void 0===e?void 0:e.isAccessible)&&this.props.actions.eventsListener(s.Z.events.HOVER_SET,-1),this.props.actions.eventsListener(s.Z.events.ITEM_LOST_FOCUS,this.props)}onAnchorKeyDown(e){switch(e.keyCode||e.charCode){case 32:case 13:return e.stopPropagation(),this.onItemClick(e,"item-container",!1),!1;default:return!0}}handleGalleryItemAction(e){this.props.actions.eventsListener(s.Z.events.ITEM_ACTION_TRIGGERED,this.props,e)}onItemWrapperClick(e){this.onItemClick(e,"item-media")}onItemInfoClick(e){this.onItemClick(e,"item-info",!1),e.stopPropagation()}onItemClick(e,t,r=!0){this.props.actions.eventsListener(s.Z.events.ITEM_CLICKED,Object.assign(Object.assign({},this.props),{clickTarget:t}),e),this.shouldUseDirectLink()||(r&&e.preventDefault(),this.shouldShowHoverOnMobile()||this.shouldShowSecondMediaOnMobile()?this.handleHoverClickOnMobile(e):this.shouldHoverWithoutOverlayAndClickOnMobile()?this.props.actions.eventsListener(s.Z.events.HOVER_SET,this.props.idx):this.handleGalleryItemAction(e))}handleHoverClickOnMobile(e){this.isClickOnCurrentHoveredItem()?(this.handleGalleryItemAction(e),this.props.actions.eventsListener(s.Z.events.HOVER_SET,-1)):this.props.actions.eventsListener(s.Z.events.HOVER_SET,this.props.idx)}handleItemMouseDown(){return!0}handleItemMouseUp(){return n.Z.isMobile()&&this.longPressTimer&&clearTimeout(this.longPressTimer),!0}shouldShowHoverOnMobile(){if(n.Z.isMobile()){const{[l.Z.behaviourParams.item.overlay.hoveringBehaviour]:e,alwaysShowHover:t,previewHover:r}=this.props.options;if(e===s.Z[l.Z.behaviourParams.item.overlay.hoveringBehaviour].NEVER_SHOW)return!1;if(this.props.options[l.Z.behaviourParams.item.clickAction]===s.Z[l.Z.behaviourParams.item.clickAction].NOTHING&&"video"!==this.props.type&&"3d"!==this.props.type)return!0;if(this.props.customComponents.customHoverRenderer&&s.Z.hasHoverPlacement(this.props.options[l.Z.layoutParams.info.placement])&&e!==s.Z[l.Z.behaviourParams.item.overlay.hoveringBehaviour].NEVER_SHOW)return!0;if(t)return!0;if((0,ce.wh)()&&r)return!0}return!1}shouldShowSecondMediaOnMobile(){return!!n.Z.isMobile()&&(this.props.options[l.Z.behaviourParams.item.clickAction]===s.Z[l.Z.behaviourParams.item.clickAction].NOTHING&&"video"!==this.props.type&&"3d"!==this.props.type&&this.props.options[l.Z.behaviourParams.item.secondaryMedia.trigger]===s.Z[l.Z.behaviourParams.item.secondaryMedia.trigger].HOVER)}shouldHoverWithoutOverlayAndClickOnMobile(){return n.Z.isMobile()&&this.props.options[l.Z.behaviourParams.item.video.playTrigger]===s.Z[l.Z.behaviourParams.item.video.playTrigger].HOVER&&this.props.options[l.Z.behaviourParams.item.clickAction]===s.Z[l.Z.behaviourParams.item.clickAction].NOTHING}isHighlight(){return this.props.thumbnailHighlightId&&this.props.thumbnailHighlightId===this.props.id}shouldHover(){const{options:e}=this.props,{alwaysShowHover:t,previewHover:r}=e,i=e[l.Z.behaviourParams.item.overlay.hoveringBehaviour],{NEVER_SHOW:a,APPEARS:o}=s.Z[l.Z.behaviourParams.item.overlay.hoveringBehaviour],{NO_EFFECT:u}=s.Z[l.Z.behaviourParams.item.overlay.hoverAnimation];return i!==a&&(!0===t||(!(!(0,ce.wh)()||!r)||!(i===o&&e[l.Z.behaviourParams.item.overlay.hoverAnimation]===u&&!this.state.itemWasHovered)&&(!n.Z.isMobile()||this.shouldShowHoverOnMobile())))}getItemHover(e){const t=this.props,{customComponents:r}=t,a=(0,i.__rest)(t,["customComponents"]);return this.shouldHover()&&o().createElement(we,Object.assign({},a,{forceShowHover:this.simulateOverlayHover(),isCurrentHover:this.simulateHover(),imageDimensions:e,itemWasHovered:this.state.itemWasHovered,key:"hover",actions:{handleItemMouseDown:this.handleItemMouseDown,handleItemMouseUp:this.handleItemMouseUp},renderCustomInfo:r.customHoverRenderer?()=>r.customHoverRenderer(Fe(this.props)):null}))}getImageItem(e){const t=n.Z.pick(this.props,["gotFirstScrollEvent","alt","title","description","id","idx","options","createUrl","createMagnifiedUrl","settings","isPrerenderMode","isTransparent","style","hasSecondaryMedia","secondaryMediaItem","customComponents"]);return o().createElement(We,Object.assign({},t,{key:"imageItem",imageDimensions:e,isThumbnail:!!this.props.thumbnailHighlightId,isCurrentHover:this.simulateHover(),itemWasHovered:this.state.itemWasHovered,actions:{handleItemMouseDown:this.handleItemMouseDown,handleItemMouseUp:this.handleItemMouseUp,setItemLoaded:this.setItemLoaded}}))}get3dItem(e,t){const{calculatedAlt:r,title:i,description:a,id:s,idx:n,options:l,createUrl:u,createMagnifiedUrl:c,settings:h,isPrerenderMode:m,isTransparent:p,style:d,customComponents:y,scene:g,activeIndex:_,isCurrentHover:v}=this.props;return o().createElement(Te,{key:"3dItem",imageDimensions:e,itemContainer:this.itemContainer,shouldPlay:this.props.idx===this.props.playing3DIdx,actions:Object.assign(Object.assign({},this.props.actions),{setItemLoaded:this.setItemLoaded,handleItemMouseDown:this.handleItemMouseDown,handleItemMouseUp:this.handleItemMouseUp}),hasLink:this.itemHasLink(),hover:t,activeIndex:_,calculatedAlt:r,createMagnifiedUrl:c,createUrl:u,customComponents:y,title:i,description:a,id:s,idx:n,isPrerenderMode:m,isTransparent:p,options:l,scene:g,style:d,settings:h,isCurrentHover:v})}getVideoItem(e,t){return o().createElement(ze,Object.assign({},this.props,{shouldPlay:this.props.idx===this.props.playingVideoIdx,key:"video"+this.props.idx,hover:t,imageDimensions:e,hasLink:this.itemHasLink(),isCurrentHover:this.simulateHover(),actions:Object.assign(Object.assign({},this.props.actions),{setItemLoaded:this.setItemLoaded,handleItemMouseDown:this.handleItemMouseDown,handleItemMouseUp:this.handleItemMouseUp})}))}getTextItem(e){const t=n.Z.pick(this.props,["id","options","style","html","cropRatio","isPrerenderMode","hasSecondaryMedia","secondaryMediaItem"]);return o().createElement(Ve,Object.assign({},t,{key:"textItem",imageDimensions:e,isCurrentHover:this.simulateHover(),itemWasHovered:this.state.itemWasHovered,actions:{handleItemMouseDown:this.handleItemMouseDown,handleItemMouseUp:this.handleItemMouseUp,setItemLoaded:this.setItemLoaded}}))}getItemInner(){const{type:e,style:t,offset:r}=this.props;let i;const{innerWidth:a,innerHeight:s}=t,{innerTop:n,innerLeft:l}=r,u={width:a,height:s,marginTop:n,marginLeft:l};let c=null;switch(this.shouldHover()&&(c=this.getItemHover(u)),e){case"dummy":i=o().createElement("div",null);break;case"video":i=this.getVideoItem(u,c);break;case"text":i=[this.getTextItem(u),c];break;case"3d":i=this.get3dItem(u,c);break;default:i=this.props.isVideoPlaceholder?this.getVideoItem(u,c):[this.getImageItem(u),c]}return i}getRightInfoElementIfNeeded(){return s.Z.hasExternalRightPlacement(this.props.options[l.Z.layoutParams.info.placement],this.props.idx)?this.getExternalInfoElement(s.Z[l.Z.layoutParams.info.placement].RIGHT,"gallery-item-right-info"):null}getLeftInfoElementIfNeeded(){return s.Z.hasExternalLeftPlacement(this.props.options[l.Z.layoutParams.info.placement],this.props.idx)?this.getExternalInfoElement(s.Z[l.Z.layoutParams.info.placement].LEFT,"gallery-item-left-info"):null}getBottomInfoElementIfNeeded(){return s.Z.hasExternalBelowPlacement(this.props.options[l.Z.layoutParams.info.placement],this.props.idx)?this.getExternalInfoElement(s.Z[l.Z.layoutParams.info.placement].BELOW,"gallery-item-bottom-info"):null}getTopInfoElementIfNeeded(){return s.Z.hasExternalAbovePlacement(this.props.options[l.Z.layoutParams.info.placement],this.props.idx)?this.getExternalInfoElement(s.Z[l.Z.layoutParams.info.placement].ABOVE,"gallery-item-top-info"):null}getExternalInfoElement(e,t){const{options:r,customComponents:i,style:a}=this.props;if(!i.customInfoRenderer)return null;let n=null;const u=r[l.Z.layoutParams.info.height]+(this.hasRequiredMediaUrl?0:a.height),c=a.infoWidth+(this.hasRequiredMediaUrl?0:a.width),h=i.customInfoRenderer(Fe(this.props),e),m=s.Z.isLayout("SLIDESHOW")(this.props.options);return n=o().createElement("div",{className:"gallery-item-common-info-outer "+Ue(this.props,m),style:Object.assign({},De(e,r,a.height,r[l.Z.layoutParams.info.height]))},o().createElement("div",{style:Me(e,r,u,c),className:"gallery-item-common-info "+t,onClick:this.onItemInfoClick},h)),n}simulateHover(){return this.state.isCurrentHover||!0===this.props.options.alwaysShowHover||(0,ce.wh)()&&this.props.options.previewHover}simulateOverlayHover(){return this.simulateHover()||this.props.options[l.Z.behaviourParams.item.overlay.hoveringBehaviour]===s.Z[l.Z.behaviourParams.item.overlay.hoveringBehaviour].ALWAYS_SHOW}itemHasLink(){const{linkData:e,linkUrl:t}=this.props;return!(void 0===e.type&&(void 0===t||""===t))}getItemContainerStyles(){const{idx:e,activeIndex:t,offset:r,style:i,options:a,settings:o={}}=this.props,n=a[l.Z.layoutParams.structure.itemSpacing],u=a[l.Z.behaviourParams.gallery.horizontal.slideAnimation],c=a[l.Z.behaviourParams.gallery.layoutDirection]===s.Z[l.Z.behaviourParams.gallery.layoutDirection].RIGHT_TO_LEFT,h=a[l.Z.layoutParams.structure.scrollDirection],m=Ce(a),p={overflowY:"hidden",position:"absolute",bottom:"auto",margin:h===s.Z[l.Z.layoutParams.structure.scrollDirection].HORIZONTAL?n/2+"px":0},{avoidInlineStyles:d}=o,y=this.props.isPrerenderMode&&!this.props.settings.disableSSROpacity,g=d?{}:{opacity:y?0:1,display:y?"none":"block",transition:"opacity .2s ease"},_=d?{}:{top:r.top,left:c?"auto":r.left,right:c?r.left:"auto",width:i.width+i.infoWidth,height:i.height+i.infoHeight};let v;switch(u){case s.Z[l.Z.behaviourParams.gallery.horizontal.slideAnimation].FADE:v={left:c?"auto":0,right:c?0:"auto",pointerEvents:t===e?"auto":"none",zIndex:t===e?0:1};break;case s.Z[l.Z.behaviourParams.gallery.horizontal.slideAnimation].DECK:v={left:c?"auto":0,right:c?0:"auto",pointerEvents:t===e?"auto":"none",zIndex:Math.sign(t-e)};break;default:v={}}const P=this.state.loaded&&((0,ce.wh)()||(0,ce.g4)())?{transition:"all .4s ease",transitionProperty:"top, left, width, height, opacity"}:{transition:"none"};return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},p),_),m),P),g),v)}getItemWrapperStyles(){const{createUrl:e,options:t,style:r,type:i,offset:a}=this.props,{height:o,width:n,innerWidth:u,innerHeight:c}=r,{innerTop:h,innerLeft:m}=a;let p={};p.backgroundColor="text"===i?t[l.Z.layoutParams.crop.method]!==s.Z[l.Z.layoutParams.crop.method].FIT?"transparent":"inherit":(t[l.Z.layoutParams.crop.method]!==s.Z[l.Z.layoutParams.crop.method].FIT?r.bgColor:"inherit")||"transparent",t[l.Z.behaviourParams.item.content.hoverAnimation]===s.Z[l.Z.behaviourParams.item.content.hoverAnimation].MAIN_COLOR&&(p=Object.assign(Object.assign({},p),{background:`url(${e(s.Z.urlSizes.PIXEL,s.Z.urlTypes.HIGH_RES)})`,backgroundSize:`${u}px ${c}px`,backgroundRepeat:"no-repeat",backgroundPosition:`top ${h}px left ${m}px`}));const{TILT:d}=s.Z[l.Z.behaviourParams.item.content.hoverAnimation];return t[l.Z.behaviourParams.item.content.hoverAnimation]===d&&(p["--tiltAngleValue"]=t[l.Z.behaviourParams.item.content.tiltAngleValue]),p.height=o+"px",p.width=n+"px",p.margin=-t[l.Z.stylingParams.itemBorderWidth]+"px",p}getItemAriaLabel(){const{type:e,alt:t,htmlContent:r,options:i}=this.props;return{dummy:"",text:r,video:t||"Untitled video",image:t||"Untitled image"}[e]+(i.isStoreGallery?", Buy Now":"")}isItemClickable(e){const t=!this.itemHasLink();return!(e[l.Z.behaviourParams.item.clickAction]===s.Z[l.Z.behaviourParams.item.clickAction].NOTHING||e[l.Z.behaviourParams.item.clickAction]===s.Z[l.Z.behaviourParams.item.clickAction].LINK&&t)}getItemContainerClass(){const{options:e}=this.props,t=e[l.Z.behaviourParams.item.content.placementAnimation],r=e[l.Z.behaviourParams.item.overlay.hoverAnimation],i=e[l.Z.behaviourParams.item.content.hoverAnimation],{FADE_IN:a,EXPAND:o,SLIDE_UP:u,SLIDE_RIGHT:c,SLIDE_DOWN:h,SLIDE_LEFT:m}=s.Z[l.Z.behaviourParams.item.overlay.hoverAnimation],{MAIN_COLOR:p,ZOOM_IN:d,TILT:y,BLUR:g,GRAYSCALE:_,SHRINK:v,INVERT:P,COLOR_IN:f,DARKENED:b}=s.Z[l.Z.behaviourParams.item.content.hoverAnimation],I=this.simulateHover(),S={"gallery-item-container":!0,"item-container-regular":!I,"item-container-hover":I,"has-custom-focus":!0,visible:!0,"pro-gallery-highlight":this.isHighlight(),clickable:this.isItemClickable(e),"simulate-hover":this.simulateHover(),"hide-hover":!this.simulateHover()&&n.Z.isMobile(),"invert-hover":e[l.Z.behaviourParams.item.overlay.hoveringBehaviour]===s.Z[l.Z.behaviourParams.item.overlay.hoveringBehaviour].DISAPPEARS,"animation-slide":t===s.Z[l.Z.behaviourParams.item.content.placementAnimation].SLIDE,"hover-animation-fade-in":r===a,"hover-animation-expand":r===o,"hover-animation-slide-up":r===u,"hover-animation-slide-right":r===c,"hover-animation-slide-down":r===h,"hover-animation-slide-left":r===m,"main-color-on-hover":i===p,"zoom-in-on-hover":i===d,"tilt-on-hover":i===y,"blur-on-hover":i===g,"grayscale-on-hover":i===_,"shrink-on-hover":i===v,"invert-on-hover":i===P,"color-in-on-hover":i===f,"darkened-on-hover":i===b,"pro-gallery-mobile-indicator":n.Z.isMobile()};return Object.entries(S).map((([e,t])=>!!t&&e)).filter(Boolean).join(" ")}getItemWrapperClass(){const{options:e,type:t}=this.props,r=["gallery-item-wrapper","visible"];return e[l.Z.layoutParams.crop.enable]&&r.push("cube-type-"+e[l.Z.layoutParams.crop.method].toLowerCase()),"text"===t&&r.push("gallery-item-wrapper-text"),r.push(Ue(this.props)),r.join(" ")}getItemContainerTabIndex(){return this.isHighlight()?n.Z.getTabIndex("currentThumbnail"):this.props.activeIndex===this.props.idx?n.Z.getTabIndex("currentGalleryItem"):-1}componentDidMount(){if(n.Z.isMobile()&&"function"==typeof o().initializeTouchEvents)try{o().initializeTouchEvents(!0)}catch(e){console.error(e)}Z.Z.addEventListener("current_hover_change",this.checkIfCurrentHoverChanged)}componentWillUnmount(){clearTimeout(this.itemLoadedTimeout),Z.Z.removeEventListener("current_hover_change",this.checkIfCurrentHoverChanged)}componentDidUpdate(e){(0,Ae.sq)({prevProps:e,currentProps:this.props,itemContainer:this.itemContainer.current})}checkIfCurrentHoverChanged(e){e.galleryId===this.props.galleryId&&(this.state.isCurrentHover||e.currentHoverIdx!==this.props.idx?this.state.isCurrentHover&&e.currentHoverIdx!==this.props.idx&&this.setState({isCurrentHover:!1}):this.setState({isCurrentHover:!0,itemWasHovered:!0}))}onContextMenu(e){!n.Z.isDev()&&this.props.options[l.Z.behaviourParams.gallery.blockContextMenu]&&e.preventDefault(e)}getItemAriaRole(){switch(this.props.options[l.Z.behaviourParams.item.clickAction]){case s.Z[l.Z.behaviourParams.item.clickAction].ACTION:return"button";case s.Z[l.Z.behaviourParams.item.clickAction].LINK:return"link";default:return""}}onContainerKeyUp(e){switch(e.keyCode||e.charCode){case 32:case 13:return e.stopPropagation(),this.onItemClick(e,"item-container",!1),this.shouldUseDirectLink()&&this.itemAnchor.click(),!1;default:return!0}}composeItem(){var e;const{photoId:t,id:r,hash:i,idx:a,options:n,type:u,url:c}=this.props;this.hasRequiredMediaUrl=c||"text"===u;const h=n[l.Z.layoutParams.info.placement]!==s.Z[l.Z.layoutParams.info.placement].OVERLAY&&!this.hasRequiredMediaUrl,m=this.getItemAriaRole(),p=o().createElement("div",Object.assign({className:this.getItemContainerClass(),onContextMenu:e=>this.onContextMenu(e),id:Re.getSellectorDomId(this.props),ref:this.itemContainer,onMouseEnter:this.onMouseEnter,onMouseLeave:this.onMouseLeave,onFocus:this.onFocus,onBlur:this.onBlur,tabIndex:this.getItemContainerTabIndex(),"aria-label":this.getItemAriaLabel(),"data-hash":i,"data-id":t,"data-idx":a},m&&{role:m},{"data-hook":"item-container",key:"item-container-"+r,style:this.getItemContainerStyles(),onKeyUp:this.onContainerKeyUp,onClick:this.onItemWrapperClick}),this.getTopInfoElementIfNeeded(),this.getLeftInfoElementIfNeeded(),o().createElement("div",{style:Object.assign(Object.assign(Object.assign({},Ne(this.props.options)),s.Z.hasExternalRightPlacement(this.props.options[l.Z.layoutParams.info.placement],this.props.idx)&&{float:"left"}),s.Z.hasExternalLeftPlacement(this.props.options[l.Z.layoutParams.info.placement],this.props.idx)&&{float:"right"})},!h&&o().createElement("div",{"data-hook":"item-wrapper",className:this.getItemWrapperClass(),key:"item-wrapper-"+r,id:"item-wrapper-"+r,style:this.getItemWrapperStyles()},this.getItemInner())),this.getRightInfoElementIfNeeded(),this.getBottomInfoElementIfNeeded()),d=function({directLink:e,options:t,directShareLink:r,noFollowForSEO:i}){const a=(0,ce.Vg)();if(t[l.Z.behaviourParams.item.clickAction]===s.Z[l.Z.behaviourParams.item.clickAction].LINK){const{url:t,target:r}=e||{},o=a&&i?{rel:"nofollow"}:{};return t&&r?Object.assign({href:t,target:r},o):{}}if(t[l.Z.behaviourParams.item.clickAction]===s.Z[l.Z.behaviourParams.item.clickAction].ACTION){const e=r,i=!!e,a=t[l.Z.behaviourParams.gallery.enableIndexingShareLinks]?{}:{rel:"nofollow"};return i?Object.assign({href:e,"data-cancel-link":!0},a):{}}}(this.props),y={ref:e=>this.itemAnchor=e,"data-id":t,className:"item-link-wrapper","data-idx":a,"data-hook":"item-link-wrapper",onFocus:()=>{(0,Ae.VD)({itemAnchor:this.itemAnchor,enableExperimentalFeatures:this.props.enableExperimentalFeatures,itemContainer:this.itemContainer})},tabIndex:-1,onKeyDown:e=>{this.onAnchorKeyDown(e)}};return(null===(e=null==d?void 0:d.href)||void 0===e?void 0:e.length)>0?o().createElement("a",Object.assign({key:"item-container-link-"+r},y,d),p):o().createElement("div",Object.assign({key:"item-container-div-"+r},y),p)}render(){return this.composeItem()}}var Ye=je;class $e extends o().Component{constructor(e){super(e),this.handleKeys=this.handleKeys.bind(this),this.showMoreItems=this.showMoreItems.bind(this),this.createGalleryConfig=this.createGalleryConfig.bind(this),this.screenLogs=this.screenLogs.bind(this),this.createGallery=this.createGallery.bind(this),this.id=Date.now()+"|"+Math.floor(1e4*Math.random()),this.state={activeIndex:0}}handleKeys(e){const t=Z.Z.document.activeElement.getAttribute("data-idx");if(t){const r=this.props.actions.findNeighborItem||this.props.galleryStructure.findNeighborItem||(()=>{}),i=Number(t);let a=-1;switch(e.keyCode||e.charCode){case 38:a=r(i,"up");break;case 37:a=r(i,this.props.options[l.Z.behaviourParams.gallery.layoutDirection]===s.Z[l.Z.behaviourParams.gallery.layoutDirection].RIGHT_TO_LEFT?"right":"left");break;case 40:if(a=r(i,"down"),this.props.totalItemsCount-1===a&&a===this.state.activeIndex)return e.stopPropagation(),n.Z.focusGalleryElement(this.props.outOfViewComponent),!1;break;case 39:a=r(i,this.props.options[l.Z.behaviourParams.gallery.layoutDirection]===s.Z[l.Z.behaviourParams.gallery.layoutDirection].RIGHT_TO_LEFT?"left":"right");break;case 27:return e.stopPropagation(),n.Z.focusGalleryElement(this.props.galleryContainerRef),!1}if(a>this.lastVisibleItemIdx()&&(a=i),a>=0)return e.preventDefault(),e.stopPropagation(),n.Z.setStateAndLog(this,"Set Gallery Current Item",{activeIndex:a}),!1}return!0}lastVisibleItemIdxInHeight(e){for(let t=this.props.galleryStructure.items.length-1;t>=0;t--){if(this.props.galleryStructure.items[t].offset.top{this.props.actions.toggleLoadMoreItems()}))}catch(e){console.warn("showMoreItems: Cannot find item to focus",e)}else this.props.actions.toggleLoadMoreItems()}createGallery(e){var t;const{options:r,settings:i,container:a,galleryStructure:n,getVisibleItems:u,virtualizationSettings:c,scrollTop:h}=this.props,m=this.createGalleryConfig(),p=o().createElement(pe,Object.assign({},this.props.debug));let d;d=e?a.galleryHeight-138:n.height+"px";const y=this.props.isPrerenderMode?"auto":this.props.container.galleryWidth-r[l.Z.layoutParams.structure.itemSpacing],g=function({items:e,options:t,virtualizationSettings:r,galleryWidth:i,galleryHeight:a,scrollPosition:o}){const{enabled:n=!1,forwardItemScrollMargin:u=10,backwardItemScrollMargin:c=10}=r||{};if(!n)return e.map((e=>({item:e,shouldRender:!0})));const h=t[l.Z.layoutParams.structure.scrollDirection]===s.Z[l.Z.layoutParams.structure.scrollDirection].HORIZONTAL,m=h?i:a,p=h?"width":"height";function d(e){const t=e.group,r=t["height"===p?"top":"left"],i=r+t[p];return r>o-m*c&&i({item:e,shouldRender:d(e)})))}({items:u(n.galleryItems,a,this.props.isPrerenderMode),options:r,virtualizationSettings:c,galleryHeight:Math.min(n.height,(null===(t=a.screen)||void 0===t?void 0:t.height)||n.height),scrollPosition:h||0}),_=g.map((({item:e,shouldRender:t},r)=>{const i=e.renderProps(Object.assign(Object.assign({},m),{visible:e.isVisible,key:`itemView-${e.id}-${r}`}));return o().createElement(Ye,Object.assign(Object.assign({},i),{type:t?i.type:"dummy"}))}));return o().createElement("div",{id:this.props.galleryContainerId,className:"pro-gallery inline-styles "+(r[l.Z.layoutParams.structure.scrollDirection]===s.Z[l.Z.layoutParams.structure.scrollDirection].HORIZONTAL?" one-row slider hide-scrollbars ":"")+((null==i?void 0:i.isAccessible)?" accessible ":"")+(r[l.Z.behaviourParams.gallery.layoutDirection]===s.Z[l.Z.behaviourParams.gallery.layoutDirection].RIGHT_TO_LEFT?" rtl ":" ltr "),style:{height:d,overflowX:"hidden"},onKeyDown:this.handleKeys},o().createElement("div",{id:`pro-gallery-margin-container-${this.props.id}`,className:"pro-gallery-margin-container",style:{margin:(this.props.options.galleryMargin||this.props.options[l.Z.layoutParams.structure.gallerySpacing])+"px",height:d,width:y,overflow:"visible",position:"relative"}},p,_))}createGalleryConfig(){return{scrollingElement:this.props.scrollingElement,scroll:this.props.scroll,container:this.props.container,options:this.props.options,settings:this.props.settings,activeIndex:this.state.activeIndex,customComponents:this.props.customComponents,galleryId:this.props.id,gotFirstScrollEvent:this.props.gotFirstScrollEvent,playingVideoIdx:this.props.playingVideoIdx,playing3DIdx:this.props.playing3DIdx,noFollowForSEO:this.props.noFollowForSEO,isPrerenderMode:this.props.isPrerenderMode,firstUserInteractionExecuted:this.props.firstUserInteractionExecuted,enableExperimentalFeatures:this.props.enableExperimentalFeatures,actions:{eventsListener:this.props.actions.eventsListener}}}screenLogs(){return n.Z.shouldDebug("screenLogs")?o().createElement("div",{className:"screen-logs"},"URL width: ",n.Z.parseGetParam("width"),", Container: ",JSON.stringify(this.props.container.galleryWidth),", window.document.body.clientWidth ",document.body.clientWidth,", window.innerWidth ",Z.Z.innerWidth,", window.screen.width: ",Z.Z.screen.width):""}createShowMoreButton(){if("function"==typeof this.props.customComponents.customLoadMoreRenderer)return o().createElement("div",{onClick:this.showMoreItems},this.props.customComponents.customLoadMoreRenderer(this.props));const{options:e}=this.props;let t=!1;if(this.props.displayShowMore&&this.props.galleryStructure.height>this.props.container.height){const r=e[l.Z.behaviourParams.gallery.vertical.loadMore.text]||"Load More";t=o().createElement("div",{className:"show-more-container"+(n.Z.isMobile()?" pro-gallery-mobile-indicator":"")},o().createElement("button",{tabIndex:n.Z.getTabIndex("loadMoreButton"),id:"show-more-"+this.props.id,className:"show-more",onClick:this.showMoreItems,onMouseDown:e=>e.preventDefault(),"data-hook":"show-more","aria-label":r},r))}return t}render(){n.Z.isVerbose()&&(console.count("galleryView render"),console.time("Rendering Gallery took "),console.log("[DEBUG_RENDER] GalleryView options",this.props.options),console.log("[DEBUG_RENDER] GalleryView props changed",n.Z.printableObjectsDiff(this.lastProps||{},this.props)),this.lastProps=Object.assign({},this.props),console.log("[DEBUG_RENDER] GalleryView state changed",n.Z.printableObjectsDiff(this.lastState||{},this.state)),this.lastState=Object.assign({},this.state),this.renderCount=(this.renderCount||0)+1);const e=this.createShowMoreButton(),t=this.createGallery(e);n.Z.isVerbose()&&console.timeEnd("Rendering Gallery took ");const r=this.screenLogs();return o().createElement("div",Object.assign({className:"pro-gallery-parent-container",key:`pro-gallery-${this.id}`},n.Z.getAriaAttributes({proGalleryRole:this.props.proGalleryRole,proGalleryRegionLabel:this.props.proGalleryRegionLabel})),r,t,e)}}var Ke=$e;class Xe extends o().Component{constructor(e){super(e),this.displayName="GroupView",this.dom=[],this.state={}}createDom(e,t){return this.props.items.map((r=>{const i=r.renderProps(Object.assign(Object.assign({},this.props.galleryConfig),{visible:e}));return o().createElement(Ye,Object.assign(Object.assign({},i),{type:null!=t&&t?"dummy":i.type}))}))}shouldRender(){const{items:e}=this.props;return!!(e&&e.length&&e[0])}isVisible(){const{items:e,galleryConfig:t}=this.props;if(this.props.allowLoop){const{idx:r}=e[e.length-1],{activeIndex:i,totalItemsCount:a}=t,o=i-r,s=Math.floor(a/2);return Math.abs(o)<=s}return!0}render(){const{options:e}=this.props.galleryConfig,t=e[l.Z.behaviourParams.gallery.layoutDirection]===s.Z[l.Z.behaviourParams.gallery.layoutDirection].RIGHT_TO_LEFT;return this.shouldRender()?o().createElement("div",{key:`group_${this.props.idx}_${this.props.items[0].id}`,"data-hook":"group-view",className:`group-view group-view-${this.props.idx}`,style:{"--group-top":this.props.top+"px","--group-left":t?"auto":this.props.left+"px","--group-width":this.props.width+"px","--group-right":t?this.props.left+"px":"auto"},"aria-hidden":this.props.ariaHidden},this.createDom(this.isVisible(),this.props.shouldRenderEmpty)):null}}var qe=Xe,Je=r(60216),Qe=r.n(Je);const et=e=>{var{size:t}=e,r=(0,i.__rest)(e,["size"]);return o().createElement("svg",Object.assign({viewBox:"0 0 11 14",fill:"currentColor",width:t||"11",height:t||"14"},r),o().createElement("g",{id:"final",stroke:"none",fill:"none",strokeWidth:"1",fillRule:"evenodd"},o().createElement("g",{id:"Pause",transform:"translate(-490 -763)",fill:"currentColor"},o().createElement("g",{id:"Group-2",transform:"translate(470 284)"},o().createElement("g",{id:"Group",transform:"translate(20 479)"},o().createElement("path",{id:"play",d:"M0.0788076641 0L0 14 10.5 6.81856071z"}))))))};et.displayName="play",et.propTypes={size:Qe().string};var tt=et;const rt=e=>{var{size:t}=e,r=(0,i.__rest)(e,["size"]);return o().createElement("svg",Object.assign({viewBox:"0 0 10 14",fill:"currentColor",width:t||"10",height:t||"14"},r),o().createElement("g",{id:"final",stroke:"none",fill:"none",strokeWidth:"1",fillRule:"evenodd"},o().createElement("g",{id:"Play",transform:"translate(-490 -763)",fill:"currentColor"},o().createElement("g",{id:"Group-2",transform:"translate(470 284)"},o().createElement("g",{id:"Group",transform:"translate(20 479)"},o().createElement("path",{d:"M7,0 L10,0 L10,14 L7,14 L7,0 Z M0,0 L3,0 L3,14 L0,14 L0,0 Z",id:"_copy_3"}))))))};rt.displayName="pause",rt.propTypes={size:Qe().string};var it=rt;function at({activeIndex:e,prevActiveIndex:t,activeIndexOffsetMemory:r,items:i}){const a=i.length;if(e===t)return r;e=n.Z.inRange(e,a);const o=Math.abs(t-e),s=Math.abs(t-a-e),l=Math.abs(t+a-e);return lvoid 0!==e.idx)).sort(((e,t)=>e.idx-t.idx))).map((t=>({item:e.find((e=>e.id===t.id)),thumbnailItem:t,idx:t.idx})))}function st({horizontalThumbnails:e,containerWidth:t,containerHeight:r,thumbnailSize:i}){return e?{width:t,height:i}:{width:i,height:r}}function nt({width:e,height:t,horizontalThumbnails:r}){return r?Math.ceil(e/t):Math.ceil(t/e)}function lt({horizontalThumbnails:e,width:t,height:r,activeIndex:i,thumbnailSizeWithSpacing:a,itemsCount:o}){const s={overflow:"visible",width:t,height:r},n=e?"left":"top",l=a*(i%o),u=(e?t:r)/2-a/2;return Object.assign(Object.assign({},s),{[n]:l{const o=a+E[0].idx;return{thumbnailItem:t,item:e,location:ct({thumbnailAlignment:i,offset:o,isRTL:d,thumbnailSizeWithSpacing:g}),idx:r}})),thumbnailsMargins:Z,horizontalThumbnails:_,thumbnailsStyle:T,activeIndexOffsetMemory:c}},getThumbnailsContainerSize:st,getNumberOfThumbnails:nt,getThumbnailsStyles:lt,getThumbnailsContainerMargin:ut,getThumbnailLocation:ct,calculateActiveIndexOffset:at,clearGalleryItems:ot};class mt extends o().Component{constructor(e){super(e),this.scrollToThumbnail=this.scrollToThumbnail.bind(this)}scrollToThumbnail(e){this.props.navigationToIdxCB(e)}createThumbnails({navigationPanelPosition:e,thumbnailAlignment:t,options:r,galleryStructure:i,settings:a}){const u=ht.clearGalleryItems(this.props.items,this.props.galleryStructure.galleryItems),c=n.Z.inRange(this.props.activeIndex,u.length),{horizontalThumbnails:h,items:m,thumbnailsMargins:p,thumbnailsStyle:d,activeIndexOffsetMemory:y}=ht.getThumbnailsData({items:this.props.items,activeIndex:c,options:r,galleryStructure:i,thumbnailAlignment:t,containerHeight:this.props.container.height,containerWidth:this.props.container.width,activeIndexOffsetMemory:this.activeIndexOffsetMemory,prevActiveIndex:this.prevActiveIndex});return this.prevActiveIndex=c,this.activeIndexOffsetMemory=y,o().createElement("div",{className:"pro-gallery inline-styles thumbnails-gallery "+(this.props.domOrder?"thumbnails-gallery-"+this.props.domOrder:"")+(h?" one-row hide-scrollbars ":"")+(r[l.Z.behaviourParams.gallery.layoutDirection]===s.Z[l.Z.behaviourParams.gallery.layoutDirection].RIGHT_TO_LEFT?" rtl ":" ltr ")+((null==a?void 0:a.isAccessible)?" accessible ":""),style:Object.assign(Object.assign(Object.assign(Object.assign({},this.props.isPrerenderMode?{display:"block"}:{}),{width:d.width,height:d.height}),p),yt({galleryThumbnailsAlignment:t,navigationPanelPosition:e})),"data-hook":"gallery-thumbnails"},o().createElement("div",{"data-hook":"gallery-thumbnails-column",className:"galleryColumn",key:"thumbnails-column",style:Object.assign({},d)},m.map((({thumbnailItem:e,location:t,idx:i})=>{const a=i===c%m.length,u=Object.assign(Object.assign({width:r[l.Z.layoutParams.thumbnails.size],height:r[l.Z.layoutParams.thumbnails.size],overflow:"hidden",backgroundImage:`url(${e.createUrl(s.Z.urlSizes.THUMBNAIL,s.Z.urlTypes.HIGH_RES)})`},t),this.props.isPrerenderMode?{opacity:0}:{});return o().createElement("div",{key:"thumbnail-"+e.id+(Number.isInteger(i)?"-"+i:""),className:"thumbnailItem thumbnail-"+e.idx+(a?" pro-gallery-thumbnails-highlighted pro-gallery-highlight"+(n.Z.isMobile()?" pro-gallery-mobile-indicator":""):""),"data-key":e.id,style:u,onClick:()=>this.scrollToThumbnail(i),tabIndex:0,onKeyDown:e=>{"Enter"===e.key&&this.scrollToThumbnail(i)}},"video"===e.type&&r[l.Z.behaviourParams.item.video.enableThumbnailsPlayButton]&&o().createElement(be.U,{type:"videoPlayButton",size:"28"}),"3d"===e.type&&r[l.Z.behaviourParams.item.threeDimensionalScene.enableThumbnailsPlayButton]&&o().createElement(be.U,{type:"rotateArrow",size:"28"}),"text"===e.type?o().createElement(Le,Object.assign({},this.props,e.renderProps(),{options:Object.assign(Object.assign({},r),{[l.Z.layoutParams.crop.method]:s.Z[l.Z.layoutParams.crop.method].FILL,[l.Z.layoutParams.crop.enable]:!0}),actions:{},imageDimensions:Object.assign(Object.assign({},u),{marginTop:0,marginLeft:0}),style:Object.assign(Object.assign({},e.renderProps().style),u)})):null)}))))}render(){const e={navigationPanelPosition:this.props.options[l.Z.layoutParams.thumbnails.position],thumbnailAlignment:this.props.options[l.Z.layoutParams.thumbnails.alignment],options:this.props.options,galleryStructure:this.props.galleryStructure,settings:this.props.settings};return this.createThumbnails(e)}}const pt=({width:e,height:t,galleryHeight:r,navigationPanelPosition:i})=>i===s.Z[l.Z.layoutParams.thumbnails.position].ON_GALLERY?{}:{width:e,height:t-r},dt=({galleryHeight:e,galleryWidth:t,height:r,width:i,galleryThumbnailsAlignment:a,navigationPanelPosition:o})=>{switch(a){case s.Z[l.Z.layoutParams.thumbnails.alignment].TOP:case s.Z[l.Z.layoutParams.thumbnails.alignment].BOTTOM:return pt({galleryHeight:e,galleryWidth:t,height:r,width:i,navigationPanelPosition:o});case s.Z[l.Z.layoutParams.thumbnails.alignment].RIGHT:case s.Z[l.Z.layoutParams.thumbnails.alignment].LEFT:return(({width:e,height:t,galleryWidth:r,navigationPanelPosition:i})=>i===s.Z[l.Z.layoutParams.thumbnails.position].ON_GALLERY?{}:{width:e-r,height:t})({galleryHeight:e,galleryWidth:t,height:r,width:i,navigationPanelPosition:o});default:return!1}},yt=({galleryThumbnailsAlignment:e,navigationPanelPosition:t})=>{if(t===s.Z[l.Z.layoutParams.thumbnails.position].ON_GALLERY){let t={position:"absolute"};return t[e.toLowerCase()]=0,t}};var gt=mt,_t=r(95561),vt=r(52426);var Pt={DEFAULT_ARROW:{SvgComp:({style:e})=>o().createElement("svg",{className:"slideshow-arrow",style:e,width:"23",height:"39",viewBox:"0 0 23 39"},o().createElement("path",{d:"M857.005,231.479L858.5,230l18.124,18-18.127,18-1.49-1.48L873.638,248Z",transform:"translate(-855 -230)"})),width:23,height:39},ARROW_2:{SvgComp:({style:e})=>o().createElement("svg",{className:"slideshow-arrow",style:e,width:"40px",height:"33px",viewBox:"0 0 40 33",version:"1.1",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink"},o().createElement("g",{id:"Page-1",stroke:"none",strokeWidth:"1",fillRule:"evenodd"},o().createElement("g",{id:"Artboard-Copy-93",transform:"translate(-28.000000, -32.000000)",fillRule:"nonzero"},o().createElement("polygon",{id:"4",points:"51.5515789 32 67.6 48.0484211 51.5515789 64.0968421 46.9663158 59.5115789 54.9880947 51.4881326 28 51.4897902 28 44.9245271 55.30728 44.9243284 46.9663158 36.5852632"})))),width:40,height:33},ARROW_3:{SvgComp:({style:e})=>o().createElement("svg",{className:"slideshow-arrow",style:e,width:"25px",height:"42px",viewBox:"0 0 25 42",version:"1.1",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink"},o().createElement("g",{id:"Page-1",stroke:"none",strokeWidth:"1",fillRule:"evenodd"},o().createElement("g",{id:"Artboard-Copy-97",transform:"translate(-36.000000, -27.000000)",fillRule:"nonzero"},o().createElement("path",{d:"M37.2206398,28.239114 C38.8026583,26.647265 41.3436172,26.5881667 42.9967317,28.0675785 L43.1590153,28.2206482 L59.1611748,44.1233571 C61.1319602,46.0819718 61.1995454,49.2312919 59.3527322,51.2754674 L59.1795659,51.4581932 L43.1590166,67.3793505 C41.51408,69.0140701 38.8553922,69.0057967 37.2206146,67.3608606 C35.638653,65.7689547 35.5953873,63.2276769 37.0850712,61.5838107 L37.2391492,61.4224839 L50.946,47.799 L37.2391492,34.1775161 C35.7003375,32.6482622 35.5938031,30.2229032 36.9247365,28.5696317 L37.0675472,28.4014262 L37.2206398,28.239114 Z",id:"8"})))),width:25,height:42},ARROW_4:{SvgComp:({style:e})=>o().createElement("svg",{className:"slideshow-arrow",style:e,width:"39px",height:"11px",viewBox:"0 0 39 11",version:"1.1",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink"},o().createElement("g",{stroke:"none",strokeWidth:"1",fillRule:"evenodd"},o().createElement("g",{transform:"translate(-29.000000, -43.000000)",fillRule:"nonzero"},o().createElement("polygon",{points:"59.79296 43 67.1767272 48.2074587 59.79296 53.3482492 59.792 49.24 29 49.2402303 29 47.3156703 59.792 47.315"})))),width:39,height:11},ARROW_5:{SvgComp:({style:e})=>o().createElement("svg",{className:"slideshow-arrow",style:e,width:"39px",height:"25px",viewBox:"0 0 39 25",version:"1.1",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink"},o().createElement("g",{stroke:"none",strokeWidth:"1",fillRule:"evenodd"},o().createElement("g",{transform:"translate(-29.000000, -36.000000)",fillRule:"nonzero"},o().createElement("path",{d:"M29,48.2400242 C29,47.3087892 29.6817196,46.6578788 30.6657131,46.6578788 L62.0721815,46.6578788 L53.6034603,38.6027842 C52.9919732,38.0244263 52.9745394,37.0965804 53.5626533,36.4993057 L53.6196503,36.4424086 C54.2232252,35.8695838 55.2162345,35.8487051 55.8566495,36.4049822 L66.7354947,46.6987178 C66.8997789,46.8532785 67.0362567,47.0299812 67.1410943,47.2233734 C67.6421069,47.9137524 67.5952684,48.7577348 67.0654839,49.3382112 L66.9183084,49.529704 C66.8745903,49.5829565 66.834409,49.6278886 66.7923536,49.6712745 L55.84922,60.0371144 C55.2232594,60.6516206 54.1974244,60.6696143 53.554893,60.0838114 C52.9168128,59.5020667 52.8980482,58.5443858 53.5126939,57.940867 L53.5761731,57.877497 L62.0800244,49.8549119 L30.6657131,49.8549119 C29.6912419,49.8549119 29,49.1805348 29,48.2400242 Z",id:"5"})))),width:39,height:25},ARROW_6:{SvgComp:({style:e})=>o().createElement("svg",{className:"slideshow-arrow",style:e,width:"26px",height:"40px",viewBox:"0 0 26 40",version:"1.1",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink"},o().createElement("g",{stroke:"none",strokeWidth:"1",fillRule:"evenodd"},o().createElement("g",{transform:"translate(-35.000000, -28.000000)",fillRule:"nonzero"},o().createElement("polygon",{points:"60.4571429 47.8 40.6571429 67.6 35 61.9428571 49.1433951 47.7994621 35 33.6571429 40.6571429 28"})))),width:26,height:40},ARROW_7:{SvgComp:({style:e})=>o().createElement("svg",{className:"slideshow-arrow",style:e,width:"40px",height:"33px",viewBox:"0 0 40 33",version:"1.1",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink"},o().createElement("g",{stroke:"none",strokeWidth:"1",fillRule:"evenodd"},o().createElement("g",{transform:"translate(-28.000000, -32.000000)",strokeWidth:"nonzero"},o().createElement("polygon",{transform:"translate(47.800000, 48.469489) rotate(-180.000000) translate(-47.800000, -48.469489) ",points:"43.2916087 32 44.4061622 33.1660321 30.8430707 47.6817192 67.6 47.6813756 67.6 49.2576026 30.9452714 49.2580761 44.4061622 63.772946 43.2924258 64.9389782 28.8681974 49.4277178 28 48.5197421"})))),width:40,height:33}};const ft=({customNavArrowsRenderer:e,arrowsSize:t,svgData:r,containerStyleType:i})=>{const a=r.width/r.height>1;if(i===s.Z[l.Z.layoutParams.navigationArrows.container.type].BOX){return{navArrowsContainerWidth:t,navArrowsContainerHeight:t,scalePercentage:t/2.4/(a?r.width:r.height)}}if(e)return{navArrowsContainerWidth:t,navArrowsContainerHeight:t};const o=t/r.width;return{scalePercentage:o,navArrowsContainerWidth:t,navArrowsContainerHeight:r.height*o}},bt=e=>{const t=It(e),r=t.options[l.Z.layoutParams.navigationArrows.enable],{galleryWidth:i}=t.container,{isPrerenderMode:a,galleryStructure:o,customNavArrowsRenderer:n}=t,u={options:t.options,container:t.container,customNavArrowsRenderer:n},c=o.width<=i;return!!r&&!a&&(({options:e,container:t,customNavArrowsRenderer:r})=>{const{height:i}=t,a=St(e[l.Z.layoutParams.navigationArrows.type]),{navArrowsContainerHeight:o}=ft({customNavArrowsRenderer:r,arrowsSize:e[l.Z.layoutParams.navigationArrows.size],svgData:a,containerStyleType:e[l.Z.layoutParams.navigationArrows.container.type]}),n=e[l.Z.layoutParams.info.height];return{[s.Z[l.Z.layoutParams.navigationArrows.verticalAlignment].INFO_CENTER]:n,[s.Z[l.Z.layoutParams.navigationArrows.verticalAlignment].IMAGE_CENTER]:i-n,[s.Z[l.Z.layoutParams.navigationArrows.verticalAlignment].ITEM_CENTER]:i}[e[l.Z.layoutParams.navigationArrows.verticalAlignment]]>=o})(u)&&!c},It=e=>{const{isPrerenderMode:t,galleryStructure:r,customNavArrowsRenderer:i}=e;return{options:e.options,container:e.container,isPrerenderMode:t,galleryStructure:r,customNavArrowsRenderer:i}},St=(e=s.Z[l.Z.layoutParams.navigationArrows.type].DEFAULT_ARROW)=>{const{DEFAULT_ARROW:t,ARROW_2:r,ARROW_3:i,ARROW_4:a,ARROW_5:o,ARROW_6:n,ARROW_7:u}=s.Z[l.Z.layoutParams.navigationArrows.type];let c;switch(e){case r:c=Pt.ARROW_2;break;case i:c=Pt.ARROW_3;break;case a:c=Pt.ARROW_4;break;case o:c=Pt.ARROW_5;break;case n:c=Pt.ARROW_6;break;case u:c=Pt.ARROW_7;break;default:c=Pt.DEFAULT_ARROW}return c};function Et({options:e,hideLeftArrow:t,hideRightArrow:r,container:i,customNavArrowsRenderer:a,next:u,id:c}){const h=e[l.Z.layoutParams.structure.itemSpacing],m=e[l.Z.behaviourParams.gallery.layoutDirection]===s.Z[l.Z.behaviourParams.gallery.layoutDirection].RIGHT_TO_LEFT,p=e[l.Z.layoutParams.navigationArrows.position],d=e[l.Z.layoutParams.navigationArrows.padding],y=e[l.Z.layoutParams.structure.scrollDirection],g=e[l.Z.layoutParams.navigationArrows.mouseCursorContainerMaxWidth],{arrowRenderer:_,navArrowsContainerWidth:v,navArrowsContainerHeight:P}=(({customNavArrowsRenderer:e,arrowsColor:t,arrowsSize:r,arrowsType:i,containerStyleType:a})=>{const u=St(i),{navArrowsContainerWidth:c,navArrowsContainerHeight:h,scalePercentage:m}=ft({customNavArrowsRenderer:e,arrowsSize:r,svgData:u,containerStyleType:a});if(e){const t=a===s.Z[l.Z.layoutParams.navigationArrows.container.type].BOX?r/2.4:r;return{arrowRenderer:r=>o().createElement("div",{style:{width:t,height:t}},e(r)),navArrowsContainerWidth:c,navArrowsContainerHeight:h}}return{arrowRenderer:e=>{const r={transform:`scaleX(${"right"===e?1:-1}) scale(${m})`,fill:n.Z.isMobile()&&(null==t?void 0:t.value)?t.value:""};return o().createElement(u.SvgComp,{style:r})},navArrowsContainerWidth:c,navArrowsContainerHeight:h}})({customNavArrowsRenderer:a,arrowsColor:e[l.Z.stylingParams.arrowsColor],arrowsSize:e[l.Z.layoutParams.navigationArrows.size],arrowsType:e[l.Z.layoutParams.navigationArrows.type],containerStyleType:e[l.Z.layoutParams.navigationArrows.container.type]}),f=p===s.Z[l.Z.layoutParams.navigationArrows.position].MOUSE_CURSOR,{galleryHeight:b}=i,I=e[l.Z.layoutParams.info.height],S=b-I,E=`50% + ${h/4}px`;let O;s.Z.hasExternalAbovePlacement(e[l.Z.layoutParams.info.placement])?O=-1:s.Z.hasExternalBelowPlacement(e[l.Z.layoutParams.info.placement])&&(O=1);const T={[s.Z[l.Z.layoutParams.navigationArrows.verticalAlignment].ITEM_CENTER]:0,[s.Z[l.Z.layoutParams.navigationArrows.verticalAlignment].IMAGE_CENTER]:I*O,[s.Z[l.Z.layoutParams.navigationArrows.verticalAlignment].INFO_CENTER]:-S*O}[e[l.Z.layoutParams.navigationArrows.verticalAlignment]],Z=(({type:e,backgroundColor:t,borderRadius:r})=>e===s.Z[l.Z.layoutParams.navigationArrows.container.type].BOX?{backgroundColor:t,borderRadius:`${r}%`}:{})({type:e[l.Z.layoutParams.navigationArrows.container.type],backgroundColor:e[l.Z.layoutParams.navigationArrows.container.backgroundColor],borderRadius:e[l.Z.layoutParams.navigationArrows.container.borderRadius]}),L=f?Object.assign({width:`${v}px`,height:`${P}px`},Z):Object.assign({width:`${v}px`,height:`${P}px`,padding:0,top:`calc(${E} - ${P/2}px - \n ${T/2}px)`},Z),w=y===s.Z[l.Z.layoutParams.structure.scrollDirection].HORIZONTAL&&p===s.Z[l.Z.layoutParams.navigationArrows.position].OUTSIDE_GALLERY?`-${20+v}px`:`${h/2+(d||0)}px`,A={left:f?0:w},R={right:f?0:w},C=["nav-arrows-container",{BOX:"box",SHADOW:"shadow",NONE:"only-arrows"}[e[l.Z.layoutParams.navigationArrows.container.type]]||"",n.Z.isMobile()?" pro-gallery-mobile-indicator":""],N=`arrow-portal-container-${c}`,x=f?Tt:Ot,D=e=>o().createElement(x,Object.assign({},{renderArrowSvg:_,next:u,directionIsLeft:e,arrowsBaseClasses:C,tabIndex:n.Z.getTabIndex.bind(n.Z),containerStyle:L,prevContainerStyle:A,nextContainerStyle:R,isRTL:m,hideLeftArrow:t,hideRightArrow:r,arrowBoxStyle:Z,navArrowsContainerWidth:v,navArrowsContainerHeight:P,navigationArrowPortalId:N,mouseCursorContainerMaxWidth:g,id:c}));return o().createElement(Zt,{hideLeftArrow:t,hideRightArrow:r,mouseCursorEnabled:f,isRTL:m,navigationArrowPortalId:N},(M=o().createElement(o().Fragment,null,t?null:D(!0),r?null:D(!1)),f?o().createElement(vt.pz,{id:c},M):M));var M}function Ot({cursor:e,arrowsBaseClasses:t,containerStyle:r,prevContainerStyle:i,nextContainerStyle:a,isRTL:s,directionIsLeft:n,renderArrowSvg:l,next:u,tabIndex:c,arrowBoxStyle:h,navArrowsContainerWidth:m,navArrowsContainerHeight:p,navigationArrowPortalId:d}){const y=n&&s||!n&&!s,g=()=>u({direction:n?-1:1}),_={className:t.join(" "),onClick:()=>setTimeout(g,0),"aria-label":(y?"Next":"Previous")+" Item",tabIndex:c(y?"slideshowNext":"slideshowPrev"),key:y?"nav-arrow-next":"nav-arrow-back","data-hook":y?"nav-arrow-next":"nav-arrow-back",style:Object.assign(Object.assign({},r),n?i:a)};if(e){const{containerRef:t,isMouseEnter:r,position:i}=e;return o().createElement("button",Object.assign({ref:e=>t.current=e},_),r&&_t.createPortal(o().createElement("span",{style:Object.assign(Object.assign({top:i.y-p/2,left:i.x-m/2},h),{width:m,height:p})},l(n?"left":"right")),window.document.getElementById(d)))}return o().createElement("button",Object.assign({},_),l(n?"left":"right"))}function Tt(e){const{directionIsLeft:t,next:r,mouseCursorContainerMaxWidth:i,hideLeftArrow:a,hideRightArrow:s,renderArrowSvg:n,containerStyle:l,arrowsBaseClasses:u,navArrowsContainerWidth:c,navArrowsContainerHeight:h}=e,m=a||s;return o().createElement(vt.bM,{id:e.id,mouseCursorContainerMaxWidth:i,navArrowsContainerWidth:c,navArrowsContainerHeight:h,onNavigate:()=>r({direction:t?-1:1}),direction:t?"left":"right",isTheOnlyArrow:m},((e,r)=>o().createElement("div",{style:{top:r,left:e},className:"follow-mouse-cursor"},o().createElement("div",{className:u.join(" "),style:Object.assign(Object.assign({},l),{top:-h/2,left:-c/2})},n(t?"left":"right")))))}function Zt({hideRightArrow:e,hideLeftArrow:t,mouseCursorEnabled:r,isRTL:i,children:a,navigationArrowPortalId:s}){if(r){const r={justifyContent:t?"flex-end":e?"flex-start":"space-between",flexDirection:i?"row-reverse":"row"};return o().createElement("div",{className:"mouse-cursor",style:Object.assign({},r)},o().createElement("div",{id:s,className:"arrow-portal-container"}),a)}return o().Fragment?o().createElement(o().Fragment,null,a):o().createElement("div",null,a)}function Lt(e){if([33,37,38].includes(e))return-1;if([32,34,39,40].includes(e))return 1;throw new Error(`no direction is defined for charCode: ${e}`)}class wt extends o().Component{constructor(e){super(e),this.autoScrollToNextItem=()=>{if(!(0,ce.wh)()&&(this.props.isInViewport||(0,ce.g4)())){const{options:e}=this.props,t=e.behaviourParams_gallery_layoutDirection===s.Z[l.Z.behaviourParams.gallery.layoutDirection].RIGHT_TO_LEFT?-1:1;e.behaviourParams_gallery_horizontal_autoSlide_behaviour===s.Z[l.Z.behaviourParams.gallery.horizontal.autoSlide.behaviour].CONTINUOUS?this._next({direction:t,isAutoTrigger:!0,isContinuousScrolling:!0}):e.behaviourParams_gallery_horizontal_autoSlide_behaviour===s.Z[l.Z.behaviourParams.gallery.horizontal.autoSlide.behaviour].INTERVAL&&this._next({direction:t,isAutoTrigger:!0,scrollDuration:800})}},this.getCustomNavigationPanel=()=>{var e;return"function"==typeof(null===(e=this.props.customComponents)||void 0===e?void 0:e.EXPERIMENTAL_customNavigationPanelRenderer)&&this.props.customComponents.EXPERIMENTAL_customNavigationPanelRenderer},this.createOrGetCustomNavigationPanelAPI=()=>{const e=this.props.options.behaviourParams_gallery_layoutDirection===s.Z[l.Z.behaviourParams.gallery.layoutDirection].RIGHT_TO_LEFT;return this.navigationPanelAPI||(this.navigationPanelAPI={onGalleryNavigationStart:e=>{this.props.actions.eventsListener(s.Z.events.GALLERY_NAVIGATION_START,e)},next:()=>{this.next({scrollDuration:400,isKeyboardNavigation:!1,isAutoTrigger:!1,avoidIndividualNavigation:!1,isContinuousScrolling:!1,direction:e?-1:1})},previous:()=>{this.next({scrollDuration:400,isKeyboardNavigation:!1,isAutoTrigger:!1,avoidIndividualNavigation:!1,isContinuousScrolling:!1,direction:e?1:-1})},navigateNextEnabled:()=>e?!this.state.hideLeftArrow:!this.state.hideRightArrow,navigatePreviousEnabled:()=>e?!this.state.hideRightArrow:!this.state.hideLeftArrow,currentIndex:()=>this.state.activeIndex,triggerItemClick:(e,{itemIndex:t=this.state.activeIndex}={})=>{const r=this.createGalleryConfig(),i=this.props.galleryStructure.galleryItems[t%this.props.totalItemsCount],a=null==i?void 0:i.renderProps(Object.assign(Object.assign({},r),{visible:!0}));this.props.actions.eventsListener(s.Z.events.ITEM_ACTION_TRIGGERED,a,e)},navigateToIndex:(e,t=400)=>{this.scrollToIndex({itemIdx:e,scrollDuration:t})}}),this.props.actions.eventsListener(s.Z.events.NAVIGATION_API_READY,this.navigationPanelAPI),this.navigationPanelAPI},this.navigationPanelCallbackOnIndexChange=()=>{},this.scrollToThumbnail=this.scrollToThumbnail.bind(this),this.clearAutoSlideshowInterval=this.clearAutoSlideshowInterval.bind(this),this.onFocus=this.onFocus.bind(this),this.onBlur=this.onBlur.bind(this),this.onAutoSlideShowButtonClick=this.onAutoSlideShowButtonClick.bind(this),this.startAutoSlideshowIfNeeded=this.startAutoSlideshowIfNeeded.bind(this),this.updateAutoSlideShowState=this.updateAutoSlideShowState.bind(this),this.canStartAutoSlideshow=this.canStartAutoSlideshow.bind(this),this.handleSlideshowKeyPress=this.handleSlideshowKeyPress.bind(this),this.onAutoSlideshowAutoPlayKeyPress=this.onAutoSlideshowAutoPlayKeyPress.bind(this),this.setCurrentItemByScroll=this.setCurrentItemByScroll.bind(this),this._setCurrentItemByScroll=n.Z.throttle(this.setCurrentItemByScroll,600).bind(this),this._next=n.Z.throttle(this.nextWithEffects.bind(this),e.isScrollLessGallery?600:400).bind(this),this.state={activeIndex:e.activeIndex||0,isInView:!0,pauseAutoSlideshowClicked:!1,hideLeftArrow:e.options.behaviourParams_gallery_layoutDirection===s.Z[l.Z.behaviourParams.gallery.layoutDirection].LEFT_TO_RIGHT,hideRightArrow:e.options.behaviourParams_gallery_layoutDirection===s.Z[l.Z.behaviourParams.gallery.layoutDirection].RIGHT_TO_LEFT,shouldBlockAutoSlideshow:!1,isInFocus:!1},this.lastCurrentItem=void 0,this.shouldCreateSlideShowPlayButton=!1,this.skipFromSlide=Math.round(1.5*this.props.totalItemsCount)}isFirstItem(){return 0===this.state.activeIndex}isScrollStart(){return!(this.props.options.behaviourParams_gallery_horizontal_slideAnimation!==s.Z[l.Z.behaviourParams.gallery.horizontal.slideAnimation].SCROLL||!this.scrollElement)&&this.scrollPosition()<=1}isScrollEnd(e=this.props){const t=this.props.options.behaviourParams_gallery_horizontal_slideAnimation;return!this.props.options.behaviourParams_gallery_horizontal_loop&&t!==s.Z[l.Z.behaviourParams.gallery.horizontal.slideAnimation].FADE&&t!==s.Z[l.Z.behaviourParams.gallery.horizontal.slideAnimation].DECK&&(this.isAllItemsLoaded()&&this.scrollPositionAtTheAndOfTheGallery()>=Math.floor(this.getScrollElementWidth(e)))}isAllItemsLoaded(){const{totalItemsCount:e,getVisibleItems:t,galleryStructure:r,container:i,isPrerenderMode:a}=this.props;return t(r.galleryItems,i,a).length>=e}getScrollElementWidth(e=this.props){const{galleryStructure:t}=e;return t.width-this.props.options.layoutParams_structure_itemSpacing/2}isFirstItemFullyVisible(){return!this.props.options.behaviourParams_gallery_horizontal_loop&&this.isScrollStart()}isLastItemFullyVisible(){return!this.props.options.behaviourParams_gallery_horizontal_loop&&this.isScrollEnd()}isLastItem(e=this.props){var t;const r=null!==(t=null==e?void 0:e.activeIndex)&&void 0!==t?t:this.state.activeIndex;return!this.props.options.behaviourParams_gallery_horizontal_loop&&r>=this.props.totalItemsCount-1}shouldBlockNext({scrollingUpTheGallery:e}){return e&&this.isLastItem()||!e&&this.isFirstItem()}shouldNotAllowScroll({scrollingUpTheGallery:e}){return e&&this.isLastItemFullyVisible()||!e&&this.isFirstItemFullyVisible()}async nextWithEffects(e){const t=await this.next(e);if(1===this.props.options.layoutParams_groups_groupSize&&this.props.isScrollLessGallery&&t>=this.skipFromSlide){const e=this.skipFromSlide-this.props.totalItemsCount;(e=>{const t=e=>{console.log("toggleScrollLessAnimation: ",e),[".gallery-item-wrapper",".gallery-item-common-info-outer"].forEach((t=>{e?[...document.querySelectorAll(t)].forEach((e=>{var t;null===(t=e.classList)||void 0===t||t.add("disabled-transition")})):[...document.querySelectorAll(t)].forEach((e=>{var t;e.offsetHeight,null===(t=e.classList)||void 0===t||t.remove("disabled-transition")}))}))};setTimeout((()=>{e&&e(),t(!0),t(!1)}),600)})((()=>this.onScrollToItemOrGroup(e,!1)))}}async next({direction:e,isAutoTrigger:t,scrollDuration:r,isKeyboardNavigation:i=!1,isContinuousScrolling:a=!1}){var o;const n=this.props.options.behaviourParams_gallery_layoutDirection===s.Z[l.Z.behaviourParams.gallery.layoutDirection].RIGHT_TO_LEFT?e<=-1:e>=1;if(this.shouldBlockNext({scrollingUpTheGallery:n}))return void this.clearAutoSlideshowInterval();e*=this.props.options.behaviourParams_gallery_layoutDirection===s.Z[l.Z.behaviourParams.gallery.layoutDirection].RIGHT_TO_LEFT?-1:1;const u=document.activeElement,c=u.className&&u.className.includes("gallery-item-container"),h=!i||!((null===(o=this.props.settings)||void 0===o?void 0:o.isAccessible)&&c);let m=!1;return this.props.options.behaviourParams_gallery_horizontal_slideAnimation!==s.Z[l.Z.behaviourParams.gallery.horizontal.slideAnimation].SCROLL&&(r=0,m=!0),this.removeArrowsIfNeeded(),h&&this.props.options.layoutParams_groups_groupSize>1?this.nextGroup({direction:e,scrollDuration:r,isContinuousScrolling:a,scrollingUpTheGallery:n}):(h&&s.Z.isLayout("GRID")(this.props.options)&&this.props.options.layoutParams_structure_numberOfGridRows&&(e*=this.props.options.layoutParams_structure_numberOfGridRows),this.nextItem({direction:e,isAutoTrigger:t,scrollDuration:r,avoidIndividualNavigation:h,ignoreScrollPosition:m,isContinuousScrolling:a,scrollingUpTheGallery:n}))}getNextItemOrGroupToScrollTo(e,t,r,i,a){let o;if(this.isSliding=!0,"nextGroup"!==e&&("nextItem"!==e||r||!i||this.props.options.layoutParams_groups_groupSize>1))"nextItem"===e&&(o=r||!a?this.state.activeIndex:this.setCurrentItemByScroll(),o+=t,this.props.options.behaviourParams_gallery_horizontal_loop||(o=Math.min(this.props.galleryStructure.items.length-1,o),o=Math.max(0,o)));else{const r="nextGroup"===e?"groups":"galleryItems";o=this.getCenteredItemOrGroupIdxByScroll(r)+t}return this.isAutoScrolling=!0,o}async nextItem({direction:e,isAutoTrigger:t,scrollDuration:r,avoidIndividualNavigation:i,ignoreScrollPosition:a,isContinuousScrolling:o,scrollingUpTheGallery:s}){if(this.isSliding)return;let l=this.getNextItemOrGroupToScrollTo("nextItem",e,a,i,t);try{const e=a?0:l;return await this.scrollToItemOrGroup(this.props.actions.scrollToItem,e,o,r,s),1!==this.props.options.layoutParams_groups_groupSize||this.props.isScrollLessGallery||l>=this.skipFromSlide&&(l=n.Z.inRange(l,this.props.totalItemsCount),await this.props.actions.scrollToItem(l)),this.onScrollToItemOrGroup(l,o),a&&(this.props.getMoreItemsIfNeeded(this.props.galleryStructure.galleryItems[l].offset.left),this.props.setGotFirstScrollIfNeeded()),l}catch(e){this.onThrowScrollError("Cannot proceed to the next Item",e)}}async nextGroup({direction:e,scrollDuration:t,isContinuousScrolling:r=!1,scrollingUpTheGallery:i}){if(this.isSliding)return;const a=this.getNextItemOrGroupToScrollTo("nextGroup",e);try{await this.scrollToItemOrGroup(this.props.actions.scrollToGroup,a,r,t,i);const o=this.getCenteredItemOrGroupIdxByScroll("galleryItems")+e;this.onScrollToItemOrGroup(o,r)}catch(e){this.onThrowScrollError("Cannot proceed to the next Group",e)}}async scrollToItemOrGroup(e,t,r,i,a){const o=!this.shouldNotAllowScroll({scrollingUpTheGallery:a}),{scrollMarginCorrection:s,_scrollDuration:n}=this.getScrollParameters(i);o&&await e(t,!1,!0,n,s,r)}onThrowScrollError(e,t){console.error(e,t),this.clearAutoSlideshowInterval()}onScrollToItemOrGroup(e,t){n.Z.setStateAndLog(this,"Next Item",{activeIndex:e},(()=>{this.onCurrentItemChanged(),this.isSliding=!1,t&&this.startAutoSlideshowIfNeeded(this.props.options)}))}getScrollParameters(e){var t;return{scrollMarginCorrection:this.getStyles().margin||0,_scrollDuration:null!==(t=null!=e?e:this.props.options.behaviourParams_gallery_horizontal_navigationDuration)&&void 0!==t?t:400}}onCurrentItemChanged(e=this.props){if(this.lastCurrentItem!==this.state.activeIndex){this.lastCurrentItem=this.state.activeIndex;const e=this.props.galleryStructure.galleryItems[this.state.activeIndex],t=this.props.items[this.state.activeIndex];t&&(t.idx=this.state.activeIndex,t.resizedImageSrc=e.createUrl(s.Z.urlSizes.RESIZED,s.Z.urlTypes.HIGH_RES),this.props.actions.eventsListener(s.Z.events.CURRENT_ITEM_CHANGED,t)),this.navigationPanelCallbackOnIndexChange(this.state.activeIndex)}this.removeArrowsIfNeeded(e)}clearAutoSlideshowInterval(){clearInterval(this.autoSlideshowInterval)}canStartAutoSlideshow(e){return e.behaviourParams_gallery_horizontal_autoSlide_behaviour!==s.Z[l.Z.behaviourParams.gallery.horizontal.autoSlide.behaviour].OFF&&!this.state.shouldBlockAutoSlideshow}startAutoSlideshowIfNeeded(e){this.clearAutoSlideshowInterval(),this.canStartAutoSlideshow(e)&&(e.behaviourParams_gallery_horizontal_autoSlide_behaviour===s.Z[l.Z.behaviourParams.gallery.horizontal.autoSlide.behaviour].CONTINUOUS&&e.behaviourParams_gallery_horizontal_autoSlide_speed>0?this.autoScrollToNextItem():e.behaviourParams_gallery_horizontal_autoSlide_behaviour===s.Z[l.Z.behaviourParams.gallery.horizontal.autoSlide.behaviour].INTERVAL&&e.behaviourParams_gallery_horizontal_autoSlide_interval>0&&(this.autoSlideshowInterval=setInterval(this.autoScrollToNextItem,1e3*e.behaviourParams_gallery_horizontal_autoSlide_interval)))}getFirstIdx(e){const{galleryItems:t}=this.props.galleryStructure,r=t[e].itemId;return t.find((e=>e.itemId===r)).idx}scrollToThumbnail(e,t){this.props.actions.eventsListener(s.Z.events.THUMBNAIL_CLICKED,this.props);const r=this.state.activeIndex,i=r+(this.getFirstIdx(e)-this.getFirstIdx(r));this.scrollToIndex({itemIdx:i,scrollDuration:t})}scrollToIndex({itemIdx:e,scrollDuration:t}){this.props.setGotFirstScrollIfNeeded();const r=this.props.options.behaviourParams_gallery_layoutDirection===s.Z[l.Z.behaviourParams.gallery.layoutDirection].RIGHT_TO_LEFT?this.state.activeIndex-e:e-this.state.activeIndex;return this.next({direction:r,isAutoTrigger:!1,scrollDuration:t,isKeyboardNavigation:!1})}handleSlideshowKeyPress(e){e.stopPropagation();const t=e.charCode||e.keyCode;if(!1===[32,33,34,37,38,39,40,27].includes(t))return!0;e.preventDefault();const r=Z.Z.document.activeElement.getAttribute("data-idx"),i=r&&this.props.totalItemsCount-1===Number(r)&&Number(r)===this.state.activeIndex;if(40===t&&i||27===t){const e={27:this.props.galleryContainerRef,40:this.props.outOfViewComponent}[t];n.Z.focusGalleryElement(e)}else this._next({direction:Lt(t),isKeyboardNavigation:!0});return!1}getCenteredItemOrGroupIdxByScroll(e){const t=this.props.galleryStructure[e];let r;const i=this.scrollPositionAtTheMiddleOfTheGallery();if(0===i)r=0;else for(let a,o=0;a=t[o];o++){if(("galleryItems"===e?a.offset.left:a.left)>i){r=o-1;break}}return r>=0||(r=t.length-1),r}setCurrentItemByScroll(){if(n.Z.isVerbose()&&console.log("Setting current Idx by scroll",this.isAutoScrolling),this.isAutoScrolling)return void(this.isAutoScrolling=!1);if("true"===(this.scrollElement&&this.scrollElement.getAttribute("data-scrolling")))return void this.clearAutoSlideshowInterval();this.startAutoSlideshowIfNeeded(this.props.options);const e=this.getCenteredItemOrGroupIdxByScroll("galleryItems");return n.Z.isUndefined(e)||n.Z.setStateAndLog(this,"Set Current Item",{activeIndex:e},(()=>{this.onCurrentItemChanged()})),e}createDebugMsg(){return o().createElement(pe,Object.assign({},this.props.debug))}createNavArrows(){const{container:e,options:t,customComponents:r,id:i}=this.props,{hideLeftArrow:a,hideRightArrow:s}=this.state;return o().createElement(Et,{container:e,options:t,customNavArrowsRenderer:r.customNavArrowsRenderer,hideLeftArrow:a,hideRightArrow:s,next:this._next,id:i})}getBufferedItems(e,t){var r;const{state:i,props:a}=this,{options:o,virtualizationSettings:n,getVisibleItems:u,isPrerenderMode:c}=a,{activeIndex:h}=i;return function({groups:e,options:t,virtualizationSettings:r,galleryWidth:i,galleryHeight:a,activeIndex:o}){const{enabled:n=!1,forwardItemMargin:u=3,backwardItemMargin:c=3,forwardItemScrollMargin:h=10,backwardItemScrollMargin:m=10}=r||{},p=t[l.Z.layoutParams.structure.scrollDirection]===s.Z[l.Z.layoutParams.structure.scrollDirection].HORIZONTAL,d=!p||t[l.Z.behaviourParams.gallery.horizontal.slideAnimation]===s.Z[l.Z.behaviourParams.gallery.horizontal.slideAnimation].SCROLL;if(!n)return e.map((e=>({group:e,shouldRender:!0})));const y=p?i:a,g=p?"width":"height",_=d?h:u,v=d?m:c,P=e.findIndex((e=>{var t,r;const{items:i}=e,a=i[0],s=i[i.length-1],n=null!==(t=a.idx)&&void 0!==t?t:a.fullscreenIdx,l=null!==(r=s.idx)&&void 0!==r?r:s.fullscreenIdx;return n<=o&&l>=o})),f=e[P],b=f[g]/y;let I=b,S=b;const E=[f];for(let t=1;I<_||S({group:e,shouldRender:E.includes(e)})))}({groups:u(e,t,c),activeIndex:h,galleryWidth:(null===(r=this.props.galleryContainerRef)||void 0===r?void 0:r.clientWidth)||t.galleryWidth||0,options:o,virtualizationSettings:n})}createGalleryConfig(){return{scrollingElement:this.props.scrollingElement,scroll:this.props.scroll,container:this.props.container,options:this.props.options,settings:this.props.settings,activeIndex:this.state.activeIndex,customComponents:this.props.customComponents,galleryId:this.props.id,gotFirstScrollEvent:this.props.gotFirstScrollEvent,playingVideoIdx:this.props.playingVideoIdx,playing3DIdx:this.props.playing3DIdx,noFollowForSEO:this.props.noFollowForSEO,isPrerenderMode:this.props.isPrerenderMode,firstUserInteractionExecuted:this.props.firstUserInteractionExecuted,enableExperimentalFeatures:this.props.enableExperimentalFeatures,actions:{eventsListener:this.props.actions.eventsListener},totalItemsCount:this.props.totalItemsCount,totalWidth:this.props.galleryStructure.width}}createLayout(){const{container:e,galleryStructure:t}=this.props,r=this.createGalleryConfig(),i=t=>{const i=!!t.galleryGroups.length&&this.getBufferedItems(t.galleryGroups,e);if(i)return i.map((({group:e,shouldRender:t})=>!!e.rendered&&o().createElement(qe,Object.assign(Object.assign({activeIndex:this.state.activeIndex,slideAnimation:this.props.options.behaviourParams_gallery_horizontal_slideAnimation,allowLoop:this.props.options.behaviourParams_gallery_horizontal_loop&&this.props.galleryStructure.width>this.props.container.width},e.renderProps(r)),{ariaHidden:e.idx>this.skipFromSlide,shouldRenderEmpty:!t,container:this.props.container,key:e.idx}))))};return t.columns.map(((e,t)=>{const r={width:this.props.isPrerenderMode?"100%":e.width,height:this.getDimensions().height,overflowY:this.props.isPrerenderMode?"visible":"hidden"};return o().createElement("div",{"data-hook":"gallery-column",id:`gallery-horizontal-scroll-${this.props.id}`,className:`gallery-horizontal-scroll gallery-column hide-scrollbars ${this.props.options.behaviourParams_gallery_layoutDirection===s.Z[l.Z.behaviourParams.gallery.layoutDirection].RIGHT_TO_LEFT?" rtl ":" ltr "} ${this.props.options.behaviourParams_gallery_horizontal_enableScrollSnap?" scroll-snap ":""} `,key:"column"+t,style:r},o().createElement("div",{className:"gallery-horizontal-scroll-inner"},i(e)))}))}getDimensions(){const e=this.props.container.galleryHeight;return this.props.isPrerenderMode?{width:"100%",height:e}:{height:e,width:this.props.container.galleryWidth}}createGallery(){var e;const t=this.props.options.layoutParams_structure_scrollDirection===s.Z[l.Z.layoutParams.structure.scrollDirection].HORIZONTAL&&this.props.options.layoutParams_navigationArrows_position===s.Z[l.Z.layoutParams.navigationArrows.position].OUTSIDE_GALLERY?{overflow:"visible",left:this.props.options.layoutParams_navigationArrows_size+40+this.props.options.layoutParams_structure_itemSpacing/2}:{},r=this.getDimensions(),i=Object.assign(Object.assign(Object.assign({},r),t),{display:"flex",justifyContent:"space-between"});return o().createElement("div",{id:this.props.galleryContainerId,className:"pro-gallery inline-styles one-row hide-scrollbars "+(this.props.options.behaviourParams_gallery_horizontal_blockScroll?"":" slider ")+((null===(e=this.props.settings)||void 0===e?void 0:e.isAccessible)?" accessible ":"")+(this.props.options.behaviourParams_gallery_layoutDirection===s.Z[l.Z.behaviourParams.gallery.layoutDirection].RIGHT_TO_LEFT?" rtl ":" ltr "),style:i},this.createDebugMsg(),this.createLayout(),this.createAutoSlideShowPlayButton(),this.createSlideShowNumbers(),bt({options:this.props.options,container:this.props.container,isPrerenderMode:this.props.isPrerenderMode,galleryStructure:this.props.galleryStructure,customNavArrowsRenderer:this.props.customComponents.customNavArrowsRenderer})&&this.createNavArrows())}onAutoSlideShowButtonClick(){this.setState({pauseAutoSlideshowClicked:!this.state.pauseAutoSlideshowClicked},(()=>{this.updateAutoSlideShowState(this.props)}))}isFullWidthGallery(){return this.props.container.galleryWidth>=n.Z.getWindowWidth()-10}onAutoSlideshowAutoPlayKeyPress(e){switch(e.keyCode||e.charCode){case 32:case 13:return e.preventDefault(),e.stopPropagation(),this.onAutoSlideShowButtonClick(),!1;default:return!0}}calcSlideshowCounterWidth(){const{totalItemsCount:e}=this.props;return e<10?26:e<100?43:e<1e3?60:76}createAutoSlideShowPlayButton(){if(!this.shouldCreateSlideShowPlayButton)return!1;const e=this.props.options.behaviourParams_gallery_horizontal_slideshowInfo_buttonsAlignment,t=this.props.options.layoutParams_structure_itemSpacing/2+(this.isFullWidthGallery()?50:0),r=e===s.Z[l.Z.behaviourParams.gallery.horizontal.slideshowInfo.buttonsAlignment].RIGHT?{left:t/2+"px"}:{right:`${t/2+(this.props.options.behaviourParams_gallery_horizontal_slideshowInfo_enableCounter?this.calcSlideshowCounterWidth():0)}px`};return o().createElement("button",{className:"auto-slideshow-button",onClick:()=>{this.onAutoSlideShowButtonClick()},onKeyDown:this.onAutoSlideshowAutoPlayKeyPress,"data-hook":"auto-slideshow-button",title:"slideshow auto play","aria-pressed":this.state.pauseAutoSlideshowClicked,tabIndex:0,style:Object.assign({top:`calc(100% - ${this.props.options.layoutParams_info_height}px + 3px)`},r)},this.state.pauseAutoSlideshowClicked?o().createElement(tt,{width:"10px",height:"100%"}):o().createElement(it,{width:"10px",height:"100%"}))}createSlideShowNumbers(){if(!this.props.options.behaviourParams_gallery_horizontal_slideshowInfo_enableCounter)return!1;const{totalItemsCount:e}=this.props,t=this.props.options.behaviourParams_gallery_horizontal_slideshowInfo_buttonsAlignment,r=this.props.options.layoutParams_structure_itemSpacing/2+(this.isFullWidthGallery()?50:0),i=this.shouldCreateSlideShowPlayButton?r/2+25:r/2,a=t===s.Z[l.Z.behaviourParams.gallery.horizontal.slideshowInfo.buttonsAlignment].RIGHT?{left:`${i}px`}:{right:r/2+"px"};return o().createElement("div",{className:"auto-slideshow-counter","data-hook":"auto-slideshow-counter",style:Object.assign({top:`calc(100% - ${this.props.options.layoutParams_info_height}px + 3px)`},a)},o().createElement("div",null,this.state.activeIndex%e+1+"/"+e))}getNavigationPanelArray(){if(!this.props.options.layoutParams_thumbnails_enable)return[!1,!1];const e=this.getCustomNavigationPanel();let t;if(e){const{galleryHeight:r,galleryWidth:i,height:a,width:s}=this.props.container,n=(({galleryHeight:e,galleryWidth:t,height:r,width:i,galleryThumbnailsAlignment:a,navigationPanelPosition:o})=>Object.assign(Object.assign(Object.assign({},dt({galleryHeight:e,galleryWidth:t,height:r,width:i,galleryThumbnailsAlignment:a,navigationPanelPosition:o})),yt({galleryThumbnailsAlignment:a,navigationPanelPosition:o})),{overflow:"hidden",float:"left"}))({galleryHeight:r,galleryWidth:i,height:a,width:s,galleryThumbnailsAlignment:this.props.options.layoutParams_thumbnails_alignment,navigationPanelPosition:this.props.options.layoutParams_thumbnails_position});t=t=>o().createElement("div",{className:"custom-navigation-panel",style:n},e(Object.assign(Object.assign({},this.props),{domOrder:t,activeIndex:this.state.activeIndex,navigationToIdxCB:this.scrollToThumbnail,navigationPanelAPI:this.createOrGetCustomNavigationPanelAPI()})))}else t=e=>o().createElement(gt,Object.assign({},this.props,{domOrder:e,activeIndex:this.state.activeIndex,navigationToIdxCB:this.scrollToThumbnail}));const r=[];if(this.props.options.layoutParams_thumbnails_position===s.Z[l.Z.layoutParams.thumbnails.position].ON_GALLERY)return r[0]=!1,r[1]=t("after"),r;if(this.props.isPrerenderMode)return r[0]=t("before"),r[1]=t("after"),r;switch(this.props.options.layoutParams_thumbnails_alignment){case s.Z[l.Z.layoutParams.thumbnails.alignment].TOP:case s.Z[l.Z.layoutParams.thumbnails.alignment].LEFT:r[0]=t("before"),r[1]=!1;break;case s.Z[l.Z.layoutParams.thumbnails.alignment].RIGHT:case s.Z[l.Z.layoutParams.thumbnails.alignment].BOTTOM:r[0]=!1,r[1]=t("after")}return r}getClassNames(){let e="pro-gallery-parent-container";return s.Z.isLayout("SLIDER")(this.props.options)?e+=" gallery-slider":this.props.options.layoutParams_thumbnails_enable?e+=" gallery-thumbnails":s.Z.isLayout("COLUMN")(this.props.options)&&(e+=" gallery-columns"),e}getStyles(){return{margin:-1*(this.props.options.layoutParams_structure_itemSpacing/2-this.props.options.layoutParams_structure_gallerySpacing),width:this.props.container.width,height:this.props.container.height}}getScrollPosition(){return this.scrollElement?this.scrollPosition():0}scrollPositionAtTheMiddleOfTheGallery(){return this.getScrollPosition()+this.props.container.galleryWidth/2}scrollPositionAtTheAndOfTheGallery(){return this.getScrollPosition()+this.props.container.galleryWidth}scrollPosition(){return(this.props.options.behaviourParams_gallery_layoutDirection===s.Z[l.Z.behaviourParams.gallery.layoutDirection].RIGHT_TO_LEFT?-1:1)*this.scrollElement.scrollLeft}updateAutoSlideShowState(e=this.props){const{isGalleryInHover:t,options:r,settings:i}=e,{pauseAutoSlideshowClicked:a,shouldBlockAutoSlideshow:o,isInView:s,isInFocus:n}=this.state,l=t&&r.behaviourParams_gallery_horizontal_autoSlide_pauseOnHover,u=n&&(null==i?void 0:i.isAccessible);let c=!s||a||u||l;o!==c&&this.setState({shouldBlockAutoSlideshow:c},(()=>{this.startAutoSlideshowIfNeeded(r)}))}onFocus(){this.setState({isInFocus:!0},(()=>{this.updateAutoSlideShowState(this.props)}))}onBlur(){this.setState({isInFocus:!1},(()=>{this.updateAutoSlideShowState(this.props)}))}UNSAFE_componentWillReceiveProps(e){var t,r;const i=e.isInViewport&&(null===(t=e.isInDisplay)||void 0===t||t);i!==(this.props.isInViewport&&(null===(r=this.props.isInDisplay)||void 0===r||r))?this.setState({isInView:i},(()=>{this.updateAutoSlideShowState(e)})):this.props.isGalleryInHover!==e.isGalleryInHover?this.updateAutoSlideShowState(e):this.props.container.scrollBase!=e.container.scrollBase&&this.forceUpdate((()=>{this.startAutoSlideshowIfNeeded(e.options)})),this.props.activeIndex!==e.activeIndex&&n.Z.setStateAndLog(this,"Next Item",{activeIndex:e.activeIndex},(()=>{this.onCurrentItemChanged(e)})),this.props.totalItemsCount===e.totalItemsCount&&this.props.container.galleryHeight===e.container.galleryHeight&&this.props.container.galleryWidth===e.container.galleryWidth&&this.state.activeIndex===e.activeIndex||this.removeArrowsIfNeeded(e),((0,ce.wh)()||(0,ce.g4)())&&(this.props.options.behaviourParams_gallery_horizontal_autoSlide_behaviour!==s.Z[l.Z.behaviourParams.gallery.horizontal.autoSlide.behaviour].OFF!==e.options.behaviourParams_gallery_horizontal_autoSlide_behaviour===s.Z[l.Z.behaviourParams.gallery.horizontal.autoSlide.behaviour].OFF&&this.props.options.behaviourParams_gallery_horizontal_autoSlide_interval===e.options.behaviourParams_gallery_horizontal_autoSlide_interval||this.startAutoSlideshowIfNeeded(e.options)),this.shouldCreateSlideShowPlayButton=e.options.behaviourParams_gallery_horizontal_autoSlide_behaviour!==s.Z[l.Z.behaviourParams.gallery.horizontal.autoSlide.behaviour].OFF&&e.options.behaviourParams_gallery_horizontal_slideshowInfo_enablePlayButton}removeArrowsIfNeeded(e=this.props){const t=e.options.behaviourParams_gallery_layoutDirection===s.Z[l.Z.behaviourParams.gallery.layoutDirection].RIGHT_TO_LEFT,{hideLeftArrow:r,hideRightArrow:i}=this.state,a=this.isScrollStart(),o=this.isFirstItem(),n=this.isScrollEnd(e),u=this.isLastItem(e),c=a||o,h=n||u,m=!t&&c||t&&h,p=t&&c||!t&&h;(!!m!=!!r||!!p!=!!i)&&this.setState({hideLeftArrow:!!m,hideRightArrow:!!p})}componentDidMount(){this.scrollElement=Z.Z.document.querySelector(`#pro-gallery-${this.props.id} #gallery-horizontal-scroll-${this.props.id}`),this.scrollElement&&this.scrollElement.addEventListener("scroll",this._setCurrentItemByScroll),this.state.activeIndex>0?(this.props.actions.scrollToItem(this.state.activeIndex),this.onCurrentItemChanged()):this.setCurrentItemByScroll(),this.startAutoSlideshowIfNeeded(this.props.options),this.createOrGetCustomNavigationPanelAPI()}componentWillUnmount(){this.scrollElement&&this.scrollElement.removeEventListener("scroll",this._setCurrentItemByScroll)}render(){n.Z.isVerbose()&&(console.count("galleryView render"),console.count("Rendering Gallery count"),console.time("Rendering Gallery took "));const e=this.createGallery(),t=this.getNavigationPanelArray();return n.Z.isVerbose()&&console.timeEnd("Rendering Gallery took "),o().createElement("div",Object.assign({className:this.getClassNames(),style:this.getStyles(),onKeyDown:this.handleSlideshowKeyPress},n.Z.getAriaAttributes({proGalleryRole:this.props.proGalleryRole,proGalleryRegionLabel:this.props.proGalleryRegionLabel}),{onFocus:this.onFocus,onBlur:this.onBlur}),t[0],e,t[1])}}var At=wt;class Rt{constructor(){this.promise=new Promise(((e,t)=>{this.reject=(...e)=>{this.isPending=!1,t(...e)},this.resolve=(...t)=>{this.isPending=!1,e(...t)},this.isPending=!0}))}}function Ct({scroller:e,from:t,to:r,duration:i,isRTL:a,slideTransition:o,isContinuousScrolling:s,autoSlideshowContinuousSpeed:n}){let l=r-t;if(0===l)return new Promise((e=>e(r)));s&&(i=Math.abs(l)/n*1e3);const u=e.firstChild;e.setAttribute("data-scrolling","true"),Object.assign(e.style,{"scroll-snap-type":"none"}),Object.assign(u.style,{transition:`transform ${i}ms ${o}`,"-webkit-transition":`transform ${i}ms ${o}`},{transform:`translateX(${-1*l}px)`});const c=new CustomEvent("scrollTransition",{detail:l/10}),h=setInterval((()=>{e.dispatchEvent(c)}),Math.round(i/10));let m=new Rt;const p=setTimeout((()=>{clearInterval(h),Object.assign(u.style,{transition:"none","-webkit-transition":"none"},{transform:"translateX(0px)"}),e.style.removeProperty("scroll-snap-type"),e.scrollLeft=r,e.setAttribute("data-scrolling",""),m.resolve(r)}),i);return{scrollDeffered:m,scroller:e,from:t,to:r,duration:i,isRTL:a,slideTransition:o,isContinuousScrolling:s,autoSlideshowContinuousSpeed:n,currentScrollEndTimeout:p}}function Nt({scroller:e,from:t,isRTL:r,currentScrollEndTimeout:i,scrollDeffered:a}){clearTimeout(i);const o=e.firstChild;let s=getComputedStyle(o).getPropertyValue("transform");var n=new DOMMatrix(s);(function({scroller:e,at:t,isRTL:r}){Object.assign(e.style,{"scroll-snap-type":"none"});let i=new Rt;Object.assign(e.firstChild.style,{transition:"none","-webkit-transition":"none"},{transform:"translateX(0px)"}),e.scrollLeft=t,i.resolve(t)})({scroller:e,at:t-=Math.round(parseInt(n.m41,10)),isRTL:r}),a.resolve(t)}class xt extends o().Component{constructor(e){super(),this.state={scrollTop:0,scrollLeft:0},this.debouncedOnScroll=n.Z.debounce(e.onScroll,50)}removeScrollListener(){if(this.scrollEventListenerSet){const e=this.props.scrollingElement;try{e.vertical().removeEventListener("scroll",this.onVerticalScroll)}catch(e){}try{const{scrollDirection:t}=this.props;t===s.Z[l.Z.layoutParams.structure.scrollDirection].HORIZONTAL&&e.horizontal().removeEventListener("scroll",this.onHorizontalScroll)}catch(e){}this.scrollEventListenerSet=!1}}initScrollListener(){var e,t;this.scrollEventListenerSet&&this.removeScrollListener(),this.scrollEventListenerSet=!0;const r=this.props.scrollingElement;if(this.onHorizontalScrollTransition=({detail:e})=>{const t=Math.round(e);t>=0&&this.props.galleryScrollDirection===s.Z[l.Z.layoutParams.structure.scrollDirection].HORIZONTAL&&this.setState({scrollLeft:this.state.scrollLeft+t})},this.onHorizontalScroll=e=>{var t,r;this.props.setGotFirstScrollIfNeeded();const i=e.currentTarget||e.target||e;let a=i&&(null!==(r=null!==(t=i.scrollX)&&void 0!==t?t:i.scrollLeft)&&void 0!==r?r:i.x);this.props.isRTL&&(a=Math.abs(a)),a>=0&&this.props.galleryScrollDirection===s.Z[l.Z.layoutParams.structure.scrollDirection].HORIZONTAL&&(this.setState({scrollTop:a,scrollLeft:a}),this.props.getMoreItemsIfNeeded(a),this.debouncedOnScroll({left:a}))},this.props.galleryScrollDirection===s.Z[l.Z.layoutParams.structure.scrollDirection].HORIZONTAL)try{null===(e=null==r?void 0:r.horizontal())||void 0===e||e.addEventListener("scroll",this.onHorizontalScroll),null===(t=null==r?void 0:r.horizontal())||void 0===t||t.addEventListener("scrollTransition",this.onHorizontalScrollTransition)}catch(e){console.error(e)}this.onVerticalScroll=e=>{this.props.setGotFirstScrollIfNeeded();const t=e.currentTarget||e.target||e,r=t&&(t.scrollY||t.scrollTop||t.y);r>=0&&(this.props.galleryScrollDirection===s.Z[l.Z.layoutParams.structure.scrollDirection].VERTICAL&&(this.setState({scrollTop:r}),this.props.getMoreItemsIfNeeded(r)),this.debouncedOnScroll({top:r}))};try{r.vertical().addEventListener("scroll",this.onVerticalScroll)}catch(e){console.error(e)}}componentWillUnmount(){this.removeScrollListener()}componentDidMount(){this.initScrollListener()}UNSAFE_componentWillReceiveProps(e){let t=!1;for(const r of["id","scrollDirection","isRTL","totalWidth","scrollBase"])if(e[r]!==this.props[r]){t=!0;break}t&&this.initScrollListener()}render(){const e=this.props.galleryScrollDirection===s.Z[l.Z.layoutParams.structure.scrollDirection].VERTICAL&&this.props.scrollBase>0?this.props.scrollBase:0,t=this.state.scrollTop-e,{id:r}=this.props;return o().createElement("div",{key:"css-scroll-indicator","data-hook":"css-scroll-indicator","data-scroll-base":e,"data-scroll-top":this.state.scrollTop,className:Re.calcScrollClasses(r,t),style:{display:"none"}})}}const Dt=(e="",t,r)=>{const i=r[l.Z.behaviourParams.gallery.layoutDirection]===s.Z[l.Z.behaviourParams.gallery.layoutDirection].RIGHT_TO_LEFT;let a="";return t.forEach((t=>{const r=(({galleryId:e,item:t})=>`#pro-gallery-${e} #${Re.getSellectorDomId(t)}`)({galleryId:e,item:t}),o=(e=>({top:e.offset.top,left:e.offset.left,width:e.width+e.infoWidth,height:e.height+e.infoHeight,innerHeight:e.height}))(t),s=`top:${o.top}px;`,n=i?`right:${o.left}px;left:auto;`:`left:${o.left}px;`,l=`width:${o.width}px;`,u=`height:${o.height}px;`;a+=`${r} {${s}${n}${l}${u}}`})),a};var Mt=class{constructor(e){this.config=e,this.scrollHelpers=[],this.stop=e=>{for(const t of this.scrollHelpers)t.findItem(e)&&t.stop(e)},this.initializePlayState=()=>{for(const e of this.scrollHelpers)e.initializePlayState()},this.onScroll=({top:e,left:t})=>{this.scrollHelpers.length||(this.top=e||this.top,this.left=t||this.left);for(const r of this.scrollHelpers)r.onScroll({top:e,left:t})},this.handleEvent=e=>{for(const t of this.scrollHelpers)t.handleEvent(e)},this.updateGalleryStructure=e=>{if(!e.isSSR){for(const t of this.scrollHelpers)t.updateGalleryStructure(e);this.scrollHelperPromise?this.latestGalleryStructure=e:(this.latestGalleryStructure=e,(0,ce.wh)()||e.galleryStructure.galleryItems.some((e=>this.config.some((t=>t.supportedItemsFilter(e)))))&&(this.scrollHelperPromise=r.e(60731).then(r.bind(r,28314)).then((({default:e})=>{for(const t of this.config)this.scrollHelpers.push(new e(t.onSetPlayingIdx,t.supportedItemsFilter,t.getPlayTrigger));this.updateGalleryStructure(this.latestGalleryStructure),this.onScroll({top:this.top,left:this.left})})).catch((e=>{console.error("Failed to load videoScrollHelper. error: "+e)}))))}},this.left=0,this.top=0}};var Gt=function(e,t,r){const i=r[e];let a;const o=(e,t,i)=>{let a,o,s,n=null,l={};return r.forEach((r=>{a=r.offset.top+r.height/2,o=r.offset.left+r.width/2,s=Math.sqrt(Math.pow(a-t,2)+Math.pow(o-e,2)),(null===n||s>0&&siri>t));break;default:a=o(i.offset.right,i.offset.top+i.height/2,((e,t,r)=>r>e))}return a.idx>=0?a.idx:(console.warn("Could not find offset for itemIdx",e,t),e)};class Ht extends o().Component{constructor(e){super(e),this.updateVisibility=()=>{const e=function({container:e,scrollTop:t}){try{const r=e.scrollBaset;return r&&i}catch(e){return console.warn("Could not calculate viewport",e),!0}}({container:this.props.container,scrollTop:this.state.scrollPosition.top});this.state.isInViewport!==e&&this.setState({isInViewport:e})},this.setVisibilityIfNeeded=(e,t)=>{const{container:r}=this.props,{scrollPosition:i}=this.state;r.scrollBase===e.container.scrollBase&&i.top===t.scrollPosition.top||this.updateVisibility()},this.findNeighborItem=(e,t)=>Gt(e,t,this.state.structure.items),n.Z.isVerbose()&&console.count("[OOISSR] galleryContainer constructor",Z.Z.isMock),this.getMoreItemsIfNeeded=this.getMoreItemsIfNeeded.bind(this),this.setGotFirstScrollIfNeeded=this.setGotFirstScrollIfNeeded.bind(this),this.toggleLoadMoreItems=this.toggleLoadMoreItems.bind(this),this.scrollToItem=this.scrollToItem.bind(this),this.scrollToGroup=this.scrollToGroup.bind(this),this._scrollingElement=this.getScrollingElement(),this.eventsListener=this.eventsListener.bind(this),this.onGalleryScroll=this.onGalleryScroll.bind(this),this.getVisibleItems=this.getVisibleItems.bind(this),this.findNeighborItem=this.findNeighborItem.bind(this),this.setCurrentSlideshowViewIdx=this.setCurrentSlideshowViewIdx.bind(this),this.getIsScrollLessGallery=this.getIsScrollLessGallery.bind(this),this.onMouseEnter=this.onMouseEnter.bind(this),this.onMouseLeave=this.onMouseLeave.bind(this),this.mediaScrollHelper=new Mt([{getPlayTrigger:e=>e.behaviourParams_item_video_playTrigger,onSetPlayingIdx:e=>this.setState({playingVideoIdx:e}),supportedItemsFilter:e=>"video"===e.type||"image"===e.type&&(e.id.includes("_placeholder")||e.isVideoPlaceholder)},{getPlayTrigger:e=>e.behaviourParams_item_threeDimensionalScene_playTrigger,onSetPlayingIdx:e=>this.setState({playing3DIdx:e}),supportedItemsFilter:e=>"3d"===e.type}]);const t={scrollPosition:{top:0,left:0},showMoreClickedAtLeastOnce:!1,initialGalleryHeight:void 0,needToHandleShowMoreClick:!1,gotFirstScrollEvent:e.activeIndex>=0,playingVideoIdx:-1,playing3DIdx:-1,viewComponent:null,firstUserInteractionExecuted:!1,isInHover:!1,isInViewport:!0};this.state=t,this.layoutCss=[],this.initialGalleryState={};try{const t=this.propsToState(e);Object.keys(t).length>0&&(this.initialGalleryState=t)}catch(e){console.warn("Cannot create initial state from props",e)}this.state=Object.assign(Object.assign({},t),this.initialGalleryState)}initializeScrollPosition(){if(this.props.activeIndex>0){this.scrollToItem(this.props.activeIndex,!1,!0,0);const e=this.galleryStructure.items[this.props.activeIndex];this.onGalleryScroll(e.offset)}}isScrollingUnavailable(e,t){return this.isVerticalGallery()?e<=t+300:this.state.structure.width{if(this.state.items.length>e){const{body:e,documentElement:t}=document,r=Z.Z.innerHeight,i=Math.max(e.scrollHeight,e.offsetHeight,t.clientHeight,t.scrollHeight,t.offsetHeight);this.getMoreItemsIfScrollIsDisabled(i,r)}}))}}componentDidMount(){Z.h.stopUsingMock();const{body:e,documentElement:t}=document,r=Z.Z.innerHeight,i=Math.max(e.scrollHeight,e.offsetHeight,t.clientHeight,t.scrollHeight,t.offsetHeight);this.initializeScrollPosition(),this.getMoreItemsIfScrollIsDisabled(i,r),this.handleNewGalleryStructure(),this.eventsListener(s.Z.events.APP_LOADED,{}),this.mediaScrollHelper.initializePlayState();try{"function"==typeof Z.Z.CustomEvent?this.currentHoverChangeEvent=new CustomEvent("current_hover_change"):(this.currentHoverChangeEvent=Z.Z.document.createEvent("CustomEvent"),this.currentHoverChangeEvent.initCustomEvent("current_hover_change",!1,!1,null))}catch(e){console.error("could not create 'current_hover_change' customEvent. Error =",e)}this.props.id&&(this.currentHoverChangeEvent.galleryId=this.props.id)}UNSAFE_componentWillReceiveProps(e){!this.currentHoverChangeEvent.galleryId&&e.id&&(this.currentHoverChangeEvent.galleryId=e.id),this.props.activeIndex!==e.activeIndex&&e.activeIndex!==this.currentSlideshowViewIdx&&this.scrollToItem(e.activeIndex,!1,!0,0);const t=()=>{const t=this.propsToState(e);Object.keys(t).length>0&&this.setState(t,this.handleNewGalleryStructure)},r=e=>{const{id:t,options:r,container:i,items:a,isInDisplay:o,isPrerenderMode:s}=e;return{id:t,options:r,container:i,items:a,isInDisplay:o,isPrerenderMode:s}};this.reCreateGalleryTimer&&clearTimeout(this.reCreateGalleryTimer);let i=!0;try{const t=r(this.props),a=r(e);i=JSON.stringify(t)!==JSON.stringify(a),n.Z.isVerbose()&&i&&console.log("New props arrived",n.Z.printableObjectsDiff(t,a))}catch(e){console.error("Cannot compare props",e)}i&&(t(),this.props.isInDisplay!==e.isInDisplay&&this.handleNavigation(e.isInDisplay))}handleNavigation(e){e||this.mediaScrollHelper.stop()}handleNewGalleryStructure(){const{container:e,needToHandleShowMoreClick:t,initialGalleryHeight:r}=this.state,i="vertical"===this.containerInfiniteGrowthDirection();let a=!1;if(!i&&t){const t=138;a=e.height+(r-t)}const o=this.props.options,u={numOfItems:this.state.items.length,container:e,options:o,layoutHeight:a||this.props.container.height,layoutItems:this.props.structure.items,isInfinite:i,isFixedHorizontlaGalleryRatio:"horizontal"===this.containerInfiniteGrowthDirection()&&this.state.options[l.Z.layoutParams.structure.galleryRatio.value]>0,updatedHeight:a};n.Z.isVerbose()&&console.log("handleNewGalleryStructure",u),this.eventsListener(s.Z.events.GALLERY_CHANGE,u),t&&this.setState({needToHandleShowMoreClick:!1})}isVerticalGallery(){return this.state.options[l.Z.layoutParams.structure.scrollDirection]===s.Z[l.Z.layoutParams.structure.scrollDirection].VERTICAL}getIsScrollLessGallery(e){const t=e[l.Z.behaviourParams.gallery.horizontal.slideAnimation];return e[l.Z.layoutParams.structure.scrollDirection]===s.Z[l.Z.layoutParams.structure.scrollDirection].HORIZONTAL&&t!==s.Z[l.Z.behaviourParams.gallery.horizontal.slideAnimation].SCROLL}getVisibleItems(e,t,r){var i,a;const{gotFirstScrollEvent:o}=this.state,s=(null===(a=null===(i=this.state)||void 0===i?void 0:i.scrollPosition)||void 0===a?void 0:a.top)||0,{galleryHeight:n,scrollBase:l,galleryWidth:u}=t;if(r||(0,ce.Vg)()||(0,ce.wh)()||o||s>0||(0,ce.g4)()||this.props.activeIndex>0)return e;let c=e;try{const t=Z.Z.innerHeight,r=this.isVerticalGallery()&&"vertical"===this.containerInfiniteGrowthDirection()?1/0:l+n,i=s+t,a=Math.min(r,i)-l;c=a<0?[]:this.isVerticalGallery()?e.filter((e=>e.offset.tope.left<=u+20)),c.length<2&&c.lengththis.props.scrollingElement:()=>Z.Z,horizontal:()=>Z.Z.document.querySelector(`#pro-gallery-${this.props.id} #gallery-horizontal-scroll-${this.props.id}`)}}scrollToItem(e,t,r,i=0,a,o=!1){if(e>=0){if(this.state.gotFirstScrollEvent||this.setState({gotFirstScrollEvent:!0}),this.getIsScrollLessGallery(this.state.options))return;const u=this._scrollingElement,c=u.horizontal();try{const h={scrollMarginCorrection:a,isRTL:this.state.options[l.Z.behaviourParams.gallery.layoutDirection]===s.Z[l.Z.behaviourParams.gallery.layoutDirection].RIGHT_TO_LEFT,scrollDirection:this.state.options[l.Z.layoutParams.structure.scrollDirection],galleryWidth:this.state.container.galleryWidth,galleryHeight:this.state.container.galleryHeight,top:0,items:this.galleryStructure.items,totalWidth:this.galleryStructure.width,itemIdx:e,fixedScroll:t,isManual:r,scrollingElement:u,horizontalElement:c,durationInMS:i,slideTransition:this.state.options[l.Z.behaviourParams.gallery.horizontal.slideTransition],isContinuousScrolling:o,autoSlideshowContinuousSpeed:this.state.options[l.Z.behaviourParams.gallery.horizontal.autoSlide.speed],itemSpacing:this.state.options[l.Z.layoutParams.structure.itemSpacing]};return this.eventsListener(s.Z.events.GALLERY_NAVIGATION_START,{current:"scrollToItem",scrollParams:h}),this.currentScrollData=function(e){let t,r;const{scrollMarginCorrection:i=0,durationInMS:a,horizontalElement:o,scrollingElement:u,isRTL:c,scrollDirection:h,galleryWidth:m,galleryHeight:p,totalWidth:d,top:y,items:g,itemIdx:_,fixedScroll:v,slideTransition:P,isContinuousScrolling:f,autoSlideshowContinuousSpeed:b,itemSpacing:I}=e,S=c?-1:1;if(h===s.Z[l.Z.layoutParams.structure.scrollDirection].HORIZONTAL?(r=o.scrollLeft*S,t=r+_*m/2):(r=y,t=y+_*p/2),!0!==v){n.Z.isVerbose()&&console.log("Scrolling to items #"+_);const e=g.find((e=>e.idx===_));if(t=h===s.Z[l.Z.layoutParams.structure.scrollDirection].HORIZONTAL?n.Z.get(e,"offset.left"):n.Z.get(e,"offset.top"),n.Z.isVerbose()&&console.log("Scrolling to position "+t,e),!(t>=0))return n.Z.isVerbose()&&console.warn("Position not found, not scrolling"),new Promise((e=>e()));if(h===s.Z[l.Z.layoutParams.structure.scrollDirection].HORIZONTAL){const a=(m-e.width-I)/2;t-=a,t=Math.max(0,t),t=Math.min(t,d-m+i),t*=S,r*=S,n.Z.isVerbose()&&console.log("Scrolling to new position "+t,this)}}return h===s.Z[l.Z.layoutParams.structure.scrollDirection].HORIZONTAL?Ct({scroller:o,from:Math.round(r),to:Math.round(t),duration:a,isRTL:c,slideTransition:P,isContinuousScrolling:f,autoSlideshowContinuousSpeed:b}):new Promise((e=>{u.vertical().scrollTo(0,t),e(t)}))}(h),this.currentScrollData.scrollDeffered.promise.then((()=>{this.currentScrollData=null}))}catch(e){console.error("error:",e," pro-gallery, scrollToItem, cannot get scrollParams, ","isEditMode =",(0,ce.wh)()," isPreviewMode =",(0,ce.g4)()," isSiteMode =",(0,ce.bK)()," this.state.options =",this.state.options," this.state.container =",this.state.container," this.galleryStructure =",this.galleryStructure)}}}scrollToGroup(e,t,r,i=0,a,o=!1){if(e>=0){const u=this._scrollingElement,c=u.horizontal();try{const h={scrollMarginCorrection:a,isRTL:this.state.options[l.Z.behaviourParams.gallery.layoutDirection]===s.Z[l.Z.behaviourParams.gallery.layoutDirection].RIGHT_TO_LEFT,scrollDirection:this.state.options[l.Z.layoutParams.structure.scrollDirection],galleryWidth:this.state.container.galleryWidth,galleryHeight:this.state.container.galleryHeight,top:0,groups:this.galleryStructure.groups,totalWidth:this.galleryStructure.width,groupIdx:e,fixedScroll:t,isManual:r,scrollingElement:u,horizontalElement:c,durationInMS:i,slideTransition:this.state.options[l.Z.behaviourParams.gallery.horizontal.slideTransition],isContinuousScrolling:o,autoSlideshowContinuousSpeed:this.state.options[l.Z.behaviourParams.gallery.horizontal.autoSlide.speed],itemSpacing:this.state.options[l.Z.layoutParams.structure.itemSpacing]};return this.eventsListener(s.Z.events.GALLERY_NAVIGATION_START,{current:"scrollToGroup",scrollParams:h}),this.currentScrollData=function(e){let t,r;const{scrollMarginCorrection:i=0,durationInMS:a,horizontalElement:o,scrollingElement:u,isRTL:c,scrollDirection:h,galleryWidth:m,galleryHeight:p,totalWidth:d,top:y,groups:g,groupIdx:_,fixedScroll:v,slideTransition:P,isContinuousScrolling:f,autoSlideshowContinuousSpeed:b,itemSpacing:I}=e,S=c?-1:1;if(h===s.Z[l.Z.layoutParams.structure.scrollDirection].HORIZONTAL?(r=o.scrollLeft,t=r+_*m/2):(r=y,t=y+_*p/2),!0!==v){n.Z.isVerbose()&&console.log("Scrolling to groups #"+_);const e=g.find((e=>e.idx===_));if(t=h===s.Z[l.Z.layoutParams.structure.scrollDirection].HORIZONTAL?n.Z.get(e,"left"):n.Z.get(e,"top"),n.Z.isVerbose()&&console.log("Scrolling to position "+t,e),!(t>=0))return n.Z.isVerbose()&&console.warn("Position not found, not scrolling"),new Promise((e=>e()));if(h===s.Z[l.Z.layoutParams.structure.scrollDirection].HORIZONTAL){const r=(m-e.width-I)/2;t-=r,t=Math.max(0,t),t=Math.min(t,d-m+i),t*=S,n.Z.isVerbose()&&console.log("Scrolling to new position "+t,this)}}return h===s.Z[l.Z.layoutParams.structure.scrollDirection].HORIZONTAL?Ct({scroller:o,from:Math.round(r),to:Math.round(t),duration:a,isRTL:c,slideTransition:P,isContinuousScrolling:f,autoSlideshowContinuousSpeed:b}):new Promise((e=>{u.vertical().scrollTo(0,t),e(t)}))}(h),this.currentScrollData.scrollDeffered.promise.then((()=>{this.currentScrollData=null}))}catch(e){console.error("error:",e," pro-gallery, scrollToGroup, cannot get scrollParams, ","isEditMode =",(0,ce.wh)()," isPreviewMode =",(0,ce.g4)()," isSiteMode =",(0,ce.bK)()," this.state.options =",this.state.options," this.state.container =",this.state.container," this.galleryStructure =",this.galleryStructure)}}}containerInfiniteGrowthDirection(e=!1){const t=e||this.props.options,{showMoreClickedAtLeastOnce:r}=this.state;return t[l.Z.layoutParams.structure.scrollDirection]===s.Z[l.Z.layoutParams.structure.scrollDirection].HORIZONTAL?"horizontal":this.props.options[l.Z.behaviourParams.gallery.vertical.loadMore.enable]?r&&t[l.Z.behaviourParams.gallery.vertical.loadMore.amount]===s.Z[l.Z.behaviourParams.gallery.vertical.loadMore.amount].ALL?"vertical":"none":"vertical"}onGalleryScroll(e){this.props.isInDisplay&&this.eventsListener(s.Z.events.GALLERY_SCROLLED,e)}componentDidUpdate(e,t){if(this.setVisibilityIfNeeded(e,t),this.props.isPrerenderMode!==e.isPrerenderMode){const{body:e,documentElement:t}=document,r=Z.Z.innerHeight,i=Math.max(e.scrollHeight,e.offsetHeight,t.clientHeight,t.scrollHeight,t.offsetHeight);this.getMoreItemsIfScrollIsDisabled(i,r)}}createDynamicStyles(e,t){const r=t&&!this.props.settings.disableSSROpacity;this.dynamicStyles=`\n ${r?`#pro-gallery-${this.props.id} .gallery-item-container { opacity: 0 }`:""}\n ${e?`#pro-gallery-${this.props.id} .gallery-item-hover::before { background: ${e} !important}`:""}\n `.trim()}createCssLayoutsIfNeeded(e){const{settings:t={}}=this.props,{avoidInlineStyles:r}=t;r&&(this.layoutCss=(({galleryItems:e,layoutParams:t,id:r})=>{const i=[];return i.push(Dt(r,e,t.options)),i})({layoutParams:e,isMobile:n.Z.isMobile(),id:this.props.id,galleryItems:this.galleryStructure.galleryItems}))}getScrollCss({id:e,items:t,options:r,container:i}){this.scrollCss=Re.calcScrollCss({items:t,options:r,id:e,container:i})}toggleLoadMoreItems(){this.eventsListener(s.Z.events.LOAD_MORE_CLICKED,this.galleryStructure.galleryItems);const e=!0;if(this.state.showMoreClickedAtLeastOnce)this.setState({needToHandleShowMoreClick:e},(()=>{this.handleNewGalleryStructure()}));else{this.getScrollCss({id:this.props.id,items:this.galleryStructure.galleryItems,options:this.state.options,container:this.state.container});const t=this.state.container.height;this.setState({showMoreClickedAtLeastOnce:true,initialGalleryHeight:t,needToHandleShowMoreClick:e},(()=>{this.handleNewGalleryStructure()}))}}setGotFirstScrollIfNeeded(){this.state.gotFirstScrollEvent||(this.getScrollCss({id:this.props.id,items:this.galleryStructure.galleryItems,options:this.state.options,container:this.state.container}),this.setState({gotFirstScrollEvent:!0}))}setCurrentSlideshowViewIdx(e){this.currentSlideshowViewIdx=e}simulateHorizontalScrollToItem(e){(null==e?void 0:e.offset)&&this.onGalleryScroll({left:e.offset.left})}eventsListener(e,t,r){if(this.mediaScrollHelper.handleEvent({eventName:e,eventData:t}),e===s.Z.events.HOVER_SET&&(this.currentHoverChangeEvent.currentHoverIdx=t,Z.Z.dispatchEvent(this.currentHoverChangeEvent)),e===s.Z.events.CURRENT_ITEM_CHANGED&&(this.setCurrentSlideshowViewIdx(t.idx),this.getIsScrollLessGallery(this.state.options)&&this.simulateHorizontalScrollToItem(this.galleryStructure.items[t.idx])),!this.state.firstUserInteractionExecuted)switch(e){case s.Z.events.HOVER_SET:case s.Z.events.LOAD_MORE_CLICKED:case s.Z.events.ITEM_ACTION_TRIGGERED:this.setState({firstUserInteractionExecuted:!0})}if("function"==typeof this.props.eventsListener)switch(e){case s.Z.events.ITEM_ACTION_TRIGGERED:case s.Z.events.ITEM_CLICKED:setTimeout(this.props.eventsListener(e,t,r),0);break;default:this.props.eventsListener(e,t,r)}if(e===s.Z.events.GALLERY_SCROLLED){this.mediaScrollHelper.onScroll(t);const e=Object.assign(Object.assign({},this.state.scrollPosition),t);this.setState({scrollPosition:e})}}getMoreItemsIfNeeded(e){var t;if(null===(t=this.deferredGettingMoreItems)||void 0===t?void 0:t.isPending);else if(this.deferredGettingMoreItems=new Rt,this.galleryStructure&&this.galleryStructure.galleryItems&&this.galleryStructure.galleryItems.length>0&&this.state.items&&this.state.options&&this.state.container){const t=this.state.options[l.Z.layoutParams.structure.scrollDirection],r=this.galleryStructure[t===s.Z[l.Z.layoutParams.structure.scrollDirection].HORIZONTAL?"width":"height"]+(t===s.Z[l.Z.layoutParams.structure.scrollDirection].HORIZONTAL?0:this.state.container.scrollBase),i=Z.Z[t===s.Z[l.Z.layoutParams.structure.scrollDirection].HORIZONTAL?"innerWidth":"innerHeight"];r<(e?3*i:0)+(e+i)?(this.eventsListener(s.Z.events.NEED_MORE_ITEMS,this.state.items.length),setTimeout((()=>{this.deferredGettingMoreItems.resolve()}),2e3)):this.deferredGettingMoreItems.reject()}else this.deferredGettingMoreItems.reject();return this.deferredGettingMoreItems.promise.catch((()=>{}))}canRender(){const e=this.props.container&&this.props.options&&this.state.items;return!e&&n.Z.isVerbose()&&console.log("PROGALLERY [CAN_RENDER] GalleryContainer",e,this.props.container,this.props.options,this.state.items),e}onMouseEnter(){var e;(null===(e=this.currentScrollData)||void 0===e?void 0:e.isContinuousScrolling)&&this.state.options[l.Z.behaviourParams.gallery.horizontal.autoSlide.pauseOnHover]&&Nt(this.currentScrollData),this.setState({isInHover:!0})}onMouseLeave(){this.setState({isInHover:!1})}render(){var e,t,r;if(!this.canRender())return null;const i=this.props.options[l.Z.layoutParams.structure.scrollDirection]===s.Z[l.Z.layoutParams.structure.scrollDirection].HORIZONTAL?At:Ke;n.Z.isVerbose()&&(console.count("PROGALLERY [COUNTS] - GalleryContainer (render)"),console.log("PROGALLERY [RENDER] - GalleryContainer",this.props.container.scrollBase,{props:this.props,items:this.state.items}));const a="none"===this.containerInfiniteGrowthDirection();return o().createElement("div",{"data-key":"pro-gallery-inner-container",key:"pro-gallery-inner-container",className:this.props.isPrerenderMode?"pro-gallery-prerender":"",onMouseEnter:this.onMouseEnter,onMouseLeave:this.onMouseLeave,ref:e=>this.galleryContainerRef=e,tabIndex:-1},o().createElement(xt,{id:this.props.id,galleryScrollDirection:this.props.options[l.Z.layoutParams.structure.scrollDirection],isRTL:this.props.options[l.Z.behaviourParams.gallery.layoutDirection]===s.Z[l.Z.behaviourParams.gallery.layoutDirection].RIGHT_TO_LEFT,totalWidth:this.galleryStructure.width,scrollBase:this.props.container.scrollBase,scrollingElement:this._scrollingElement,getMoreItemsIfNeeded:this.getMoreItemsIfNeeded,setGotFirstScrollIfNeeded:this.setGotFirstScrollIfNeeded,onScroll:this.onGalleryScroll}),o().createElement(i,Object.assign({isInDisplay:this.props.isInDisplay,isInViewport:this.state.isInViewport,isPrerenderMode:this.props.isPrerenderMode,scrollingElement:this._scrollingElement,totalItemsCount:this.props.totalItemsCount,renderedItemsCount:this.props.renderedItemsCount,getMoreItemsIfNeeded:this.getMoreItemsIfNeeded,gotFirstScrollEvent:this.state.gotFirstScrollEvent,setGotFirstScrollIfNeeded:this.setGotFirstScrollIfNeeded,items:this.state.items,getVisibleItems:this.getVisibleItems,galleryStructure:this.galleryStructure,options:this.props.options,container:this.props.container,settings:this.props.settings,displayShowMore:a,id:this.props.id,activeIndex:this.props.activeIndex||0,customComponents:this.props.customComponents,playingVideoIdx:this.state.playingVideoIdx,playing3DIdx:this.state.playing3DIdx,noFollowForSEO:this.props.noFollowForSEO,proGalleryRegionLabel:this.props.proGalleryRegionLabel,proGalleryRole:this.props.proGalleryRole,firstUserInteractionExecuted:this.state.firstUserInteractionExecuted,isGalleryInHover:this.state.isInHover,enableExperimentalFeatures:this.props.enableExperimentalFeatures,galleryContainerRef:this.galleryContainerRef,outOfViewComponent:this.outOfViewComponent,virtualizationSettings:this.props.virtualizationSettings,galleryContainerId:`pro-gallery-container-${this.props.id}`,scrollTop:null===(t=null===(e=this.state)||void 0===e?void 0:e.scrollPosition)||void 0===t?void 0:t.top,isScrollLessGallery:this.getIsScrollLessGallery(this.state.options),actions:Object.assign(Object.assign({},this.props.actions),{findNeighborItem:this.findNeighborItem,toggleLoadMoreItems:this.toggleLoadMoreItems,eventsListener:this.eventsListener,setWixHeight:()=>{},scrollToItem:this.scrollToItem,scrollToGroup:this.scrollToGroup})},this.props.gallery)),o().createElement("div",{"data-key":"items-styles",key:"items-styles",style:{display:"none"}},(this.layoutCss||[]).filter(Boolean).map(((e,t)=>o().createElement("style",{id:`layoutCss-${t}`,key:`layoutCss-${t}`,dangerouslySetInnerHTML:{__html:e}}))),(this.scrollCss||[]).filter(Boolean).map(((e,t)=>o().createElement("style",{id:`scrollCss_${t}`,key:`scrollCss_${t}`,dangerouslySetInnerHTML:{__html:e}}))),!!this.dynamicStyles&&o().createElement("style",{dangerouslySetInnerHTML:{__html:this.dynamicStyles}})),"application"===this.props.proGalleryRole&&o().createElement("span",{ref:e=>this.outOfViewComponent=e,tabIndex:-1,className:"sr-only out-of-view-component"},null===(r=this.props.translations)||void 0===r?void 0:r.Accessibility_Left_Gallery))}}var kt=Ht,Bt=r(22772);class zt extends o().Component{constructor(){super(),n.Z.isLocal()&&!n.Z.isTest()&&console.log("PRO GALLERY DEV")}renderProps(){var e;return Object.assign(Object.assign({},this.props),{id:this.props.id,items:this.props.items||[],settings:this.props.settings||{},offsetTop:this.props.offsetTop,proGalleryRegionLabel:this.props.proGalleryRegionLabel,isInDisplay:null===(e=this.props.isInDisplay)||void 0===e||e})}containerProps(){return{id:`pro-gallery-${this.props.id}`,className:"pro-gallery"}}render(){return o().createElement(Bt.F,Object.assign({},this.props),o().createElement("div",Object.assign({},this.containerProps()),o().createElement(kt,Object.assign({},this.renderProps()))))}}function Ft(e,t){return!0!==t&&(!0===e.shouldValidateTypes||"true"===(function(){try{const e=new URLSearchParams(window.location.search);return Object.fromEntries(e.entries())}catch(e){return console.log("cannot use the URLSearchParams",e),{}}}()||""))}class Ut extends o().Component{constructor(e){super(e),this.isUsingCustomInfoElements=this.isUsingCustomInfoElements.bind(this),this.blueprintsManager=new he({id:"layoutingGallery"}),this.blueprintsManager.init({deviceType:e.deviceType,api:{isUsingCustomInfoElements:this.isUsingCustomInfoElements,fetchMoreItems:t=>{"function"==typeof e.eventsListener&&e.eventsListener(s.Z.events.NEED_MORE_ITEMS,t)},onBlueprintReady:({blueprint:e,blueprintChanged:t,initialBlueprint:r})=>{t?this.setBlueprint(e,r):n.Z.isVerbose()&&console.count(">>> Blueprint not changed, not setting it")}}}),this.onNewProps(e,!0),this.state={blueprint:this.blueprintsManager.createInitialBlueprint(e)||null}}setBlueprint(e,t){t||this.setState({blueprint:e})}isUsingCustomInfoElements(){return!!this.galleryProps.customComponents.customHoverRenderer||!!this.galleryProps.customComponents.customInfoRenderer}onNewProps(e,t){const{eventsListener:r}=e,a=(0,i.__rest)(e,["eventsListener"]);this.galleryProps=Object.assign(Object.assign({},a),{eventsListener:(e,t,i)=>{e===s.Z.events.NEED_MORE_ITEMS?this.blueprintsManager.getMoreItems(t):"function"==typeof r&&r(e,t,i)},id:e.id||"default-dom-id",customComponents:e.customComponents||{}}),t||this.blueprintsManager.createBlueprint(this.galleryProps).catch((e=>{console.error("Could not create a blueprint from the new props",e)}))}UNSAFE_componentWillReceiveProps(e){this.onNewProps(e,!1)}render(){const{blueprint:e,typeErrors:t}=this.state;return t||(e&&Object.keys(e).length>0?o().createElement(zt,Object.assign({},this.galleryProps,e)):null)}async componentDidMount(){if(!1===Ft(this.props,n.Z.isSSR()))return;const e=await r.e(68368).then(r.bind(r,56619)),{validate:t,typeErrorsUI:i}=e,a=t(this.state.blueprint.options);a.length>0&&this.setState({typeErrors:i(a)})}}var Wt,Vt=(Wt=Ut,class extends o().Component{constructor(e){super(e),this.initViewModeWrapper(e)}initViewModeWrapper(e){void 0!==e.viewMode&&ce.Ce.setViewMode(e.viewMode),void 0!==e.deviceType&&ce.Ce._deviceType!==e.deviceType&&(n.Z.dumpCache(),ce.Ce.setDeviceType(e.deviceType))}updateViewModeWrapper(e){this.props.viewMode!==e.viewMode&&(n.Z.dumpCache(),ce.Ce.setViewMode(e.viewMode)),this.props.deviceType!==e.deviceType&&(n.Z.dumpCache(),ce.Ce.setDeviceType(e.deviceType))}UNSAFE_componentWillReceiveProps(e){this.updateViewModeWrapper(e)}render(){return o().createElement(Wt,Object.assign({},this.props))}})},52426:function(e,t,r){"use strict";r.d(t,{bM:function(){return d},pz:function(){return c},Zk:function(){return y}});var i=r(5329),a=r.n(i);function o(e){return new Proxy({},{get:(t,r)=>e(r)})}class s{constructor(){this.listeners={}}on(e,t){return this.listeners[e]=this.listeners[e]||[],this.listeners[e].push(t),{remove:()=>{this.off(e,t)}}}emit(e,...t){const r=this.listeners[e];r&&r.forEach((e=>e(...t)))}off(e,t){const r=this.listeners[e];r&&r.splice(r.indexOf(t),1)}get call(){return o((e=>(...t)=>{this.emit(e,...t)}))}get listen(){return o((e=>t=>(this.on(e,t),()=>{this.off(e,t)})))}}var n=r(30972);const l=e=>document.getElementById(`pro-gallery-container-${e}`),u=a().createContext(void 0),c=({children:e,id:t})=>{const[r,o]=a().useState();return(0,i.useEffect)((()=>{const e=function(e){const t=new s;let r={mouseIn:!1,position:[0,0]};t.listen.mouseEnterState(((e,...t)=>{r={mouseIn:e,position:t}})),t.listen.mouseMove(((e,t)=>{r=Object.assign(Object.assign({},r),{position:[e,t]})}));const i=t=>{const r=e.getBoundingClientRect();return[t.clientX-r.left,t.clientY-r.top]};function a(r){const a=i(r);t.call.mouseEnterState(!p(e,r,...a),...a)}function o(r){const a=i(r);t.call.mouseEnterState(!p(e,r,...a),...a),t.call.mouseMove(...a)}function n(){t.call.mouseEnterState(!1,0,0)}function l(e){t.call.mouseClickInteractionEvent(e)}return e.addEventListener("mouseenter",a),e.addEventListener("mousemove",o),e.addEventListener("mouseleave",n),e.addEventListener("click",l),e.addEventListener("mousedown",l),e.addEventListener("mouseup",l),{listen:t.listen,get state(){return r},destroy:()=>{e.removeEventListener("mouseenter",a),e.removeEventListener("mousemove",o),e.removeEventListener("mouseleave",n),e.removeEventListener("click",l),e.removeEventListener("mousedown",l),e.removeEventListener("mouseup",l)}}}(l(t));return o(e),()=>{e.destroy()}}),[t]),a().createElement(u.Provider,{value:r},r&&e)};class h extends a().Component{constructor(){var e,t;super(...arguments),this.state={position:(null===(e=this.context)||void 0===e?void 0:e.state.position)||[0,0],mouseIn:(null===(t=this.context)||void 0===t?void 0:t.state.mouseIn)||!1}}componentDidMount(){if(!this.context)throw new Error("MouseFollowerContext is undefined");const e=this.context.listen.mouseMove(n.Z.throttle((()=>{this.setState({position:this.context.state.position})}),this.props.throttle)),t=this.context.listen.mouseEnterState((()=>{const{mouseIn:e,position:t}=this.context.state;this.state.mouseIn!==e&&(this.setState({mouseIn:e,position:t}),this.props.onEnterState&&this.props.onEnterState(e))})),r=this.context.listen.mouseClickInteractionEvent((e=>{if(!this.state.mouseIn)return;const[t,r]=this.state.position;this.props.shouldRenderAtPosition(t,r)&&("mousedown"!==e.type&&"mouseup"!==e.type?this.props.onClick(e):this.props.onMouseDownOrUp(e))}));this.cleanup=()=>{e(),t(),r()}}componentWillUnmount(){var e;null===(e=this.cleanup)||void 0===e||e.call(this)}render(){if(!this.state.mouseIn)return null;const[e,t]=this.state.position;return this.props.shouldRenderAtPosition(e,t)?this.props.render(this.state.position[0],this.state.position[1]):null}}h.contextType=u;const m="pg-clickable",p=(e,t,r,i)=>{for(const e of t.composedPath())if(e instanceof HTMLElement&&"true"===e.getAttribute(m))return!0;const a=e.getBoundingClientRect(),o=document.elementFromPoint(r+a.left,i+a.top);if(!o)return!1;let s=o;for(;s;){if("true"===s.getAttribute(m))return!0;s=s.parentElement}return!1};class d extends a().Component{constructor(){super(...arguments),this.shouldRender=e=>{const t=l(this.props.id).offsetWidth,r=t*(Math.min(this.props.mouseCursorContainerMaxWidth,this.props.isTheOnlyArrow?100:50)/100),i=r>=e,a=e>t-r;return"left"===this.props.direction?i:a},this.onNavigation=e=>{e.preventDefault(),e.stopPropagation(),this.props.onNavigate()}}render(){return a().createElement(h,{getElement:()=>l(this.props.id),render:(e,t)=>{var r;return a().createElement(a().Fragment,null,this.props.children(e,t),a().createElement("style",null,`\n #${null===(r=l(this.props.id))||void 0===r?void 0:r.id} * {\n cursor: none !important;\n }\n `))},shouldRenderAtPosition:this.shouldRender,onClick:this.onNavigation,onMouseDownOrUp:e=>e.stopPropagation(),throttle:50})}}const y=function(){const e=new Map;return o((t=>(e.get(t)||e.set(t,(e=>a().createElement(t,Object.assign(Object.assign({},e),{[m]:"true"})))),e.get(t))))}()},36721:function(e,t,r){"use strict";r.d(t,{VD:function(){return u},WT:function(){return m},sq:function(){return h}});var i=r(47458),a=r(30972),o=r(12146),s=r(93657),n=r(87352);function l(){return((0,i.bK)()||(0,i.Vg)())&&!a.Z.isMobile()&&o.Z.document}function u({itemContainer:e,enableExperimentalFeatures:t,itemAnchor:r}){if(l()&&t){o.Z.document.activeElement===r&&e.focus()}}function c(e,t){const r=o.Z.document.activeElement;return String(r.className).includes(e)&&!!o.Z.document.querySelector(`#pro-gallery-${t} #${String(r.id)}`)}function h({prevProps:e,currentProps:t,itemContainer:r}){try{if(l()&&o.Z.document.activeElement.className){const i=c("gallery-item-container",t.galleryId),a=c("show-more",t.galleryId);(i||a)&&(t.thumbnailHighlightId!==e.thumbnailHighlightId&&t.thumbnailHighlightId===t.id||t.activeIndex!==e.activeIndex&&t.activeIndex===t.idx)&&r.focus()}}catch(e){console.error("Could not set focus to active element",e)}}function m(e){return e[s.Z.behaviourParams.item.video.enablePlaceholder]&&(!a.Z.isSingleItemHorizontalDisplay(e)||e[s.Z.behaviourParams.item.video.playTrigger]!==n.Z[s.Z.behaviourParams.item.video.playTrigger].AUTO)}},21618:function(e,t,r){"use strict";r.d(t,{U:function(){return n}});var i=r(5329),a=r.n(i),o=r(22772);const s={videoPlayButton:a().lazy((()=>r.e(16370).then(r.bind(r,27270)))),rotateArrow:a().lazy((()=>r.e(49466).then(r.bind(r,15135))))},n=({type:e,size:t})=>{let r;const i=(0,o.z)();return"function"==typeof(null==i?void 0:i[e])?i[e](t):s[e]?(r=s[e],a().createElement(a().Suspense,{fallback:a().createElement(a().Fragment,null)},a().createElement(r,{size:t}))):a().createElement(a().Fragment,null)}},10651:function(e,t,r){"use strict";r.d(t,{k:function(){return o}});var i=r(5329),a=r.n(i);class o extends a().Component{constructor(e){super(e),this.state={isPrinting:!1}}componentDidMount(){window.addEventListener("beforeprint",(()=>{this.setState({isPrinting:!0})})),window.addEventListener("afterprint",(()=>{this.setState({isPrinting:!1})}))}render(){return this.state.isPrinting?a().createElement("source",Object.assign({},this.props)):null}}},22772:function(e,t,r){"use strict";r.d(t,{F:function(){return n},z:function(){return l}});var i=r(92712),a=r(5329),o=r.n(a);const s=o().createContext({}),n=e=>{var{children:t}=e;const r=(0,i.__rest)(e,["children"]).customComponents.EXPERIMENTAL_customGalleryUI;return o().createElement(s.Provider,{value:{galleryUI:r}},t)},l=()=>{const{galleryUI:e}=o().useContext(s);return e}},6803:function(e,t){"use strict";t.Z={DESKTOP:"desktop",MOBILE:"mobile",TABLET:"tablet"}},87352:function(e,t,r){"use strict";r.d(t,{Z:function(){return Y}});var i=r(64153);var a={FACEBOOK:"facebook",TWITTER:"twitter",PINTEREST:"pinterest",EMAIL:"email",TUMBLR:"tumblr"};var o={FILL:"fill",FIT:"fit",FULL:"full",VIDEO:"video"},s=r(6803);var n={APP_LOADED:"APP_LOADED",ITEM_CREATED:"ITEM_CREATED",ITEM_LOADED:"ITEM_LOADED",GALLERY_CHANGE:"GALLERY_CHANGE",ITEM_ACTION_TRIGGERED:"ITEM_ACTION_TRIGGERED",CURRENT_ITEM_CHANGED:"CURRENT_ITEM_CHANGED",NEED_MORE_ITEMS:"NEED_MORE_ITEMS",VIDEO_ENDED:"VIDEO_ENDED",VIDEO_ERROR:"VIDEO_ERROR",VIDEO_PAUSED:"VIDEO_PAUSED",VIDEO_PLAYED:"VIDEO_PLAYED",HOVER_SET:"HOVER_SET",LOAD_MORE_CLICKED:"LOAD_MORE_CLICKED",ITEM_CLICKED:"ITEM_CLICKED",THUMBNAIL_CLICKED:"THUMBNAIL_CLICKED",ITEM_FOCUSED:"ITEM_FOCUSED",ITEM_LOST_FOCUS:"ITEM_LOST_FOCUS",GALLERY_SCROLLED:"GALLERY_SCROLLED",NAVIGATION_API_READY:"NAVIGATION_API_READY",GALLERY_NAVIGATION_START:"GALLERY_NAVIGATION_START"};var l={FILL:"FILL",FIT:"FIT",MIN:"MIN",MAX:"MAX"};var u={CENTER:"CENTER",TOP:"TOP",LEFT:"LEFT",RIGHT:"RIGHT",BOTTOM:"BOTTOM"},c=r(93657);const h={JSON_FIXED:-3,DESIGNED_PRESET:-2,EMPTY:-1,COLLAGE:0,MASONRY:1,GRID:2,THUMBNAIL:3,SLIDER:4,SLIDESHOW:5,PANORAMA:6,COLUMN:7,MAGIC:8,FULLSIZE:9,BRICKS:10,MIX:11,ALTERNATE:12};var m=h;var p={BY_HEIGHT:"BY_HEIGHT",LEFT_TO_RIGHT:"LEFT_TO_RIGHT"};var d={VERTICAL:"VERTICAL",HORIZONTAL:"HORIZONTAL"};var y={FIT_TO_SCREEN:"FIT_TO_SCREEN",SET_ITEMS_PER_ROW:"SET_ITEMS_PER_ROW"};var g={VERTICAL:"VERTICAL",HORIZONTAL:"HORIZONTAL"};var _={1:"1","2v":"2v","2h":"2h","3r":"3r","3b":"3b","3t":"3t","3l":"3l","3v":"3v","3h":"3h"};var v={BOTTOM:"BOTTOM",LEFT:"LEFT",TOP:"TOP",RIGHT:"RIGHT"};var P={ITEM_CENTER:"ITEM_CENTER",IMAGE_CENTER:"IMAGE_CENTER",INFO_CENTER:"INFO_CENTER"};var f={ON_GALLERY:"ON_GALLERY",OUTSIDE_GALLERY:"OUTSIDE_GALLERY",MOUSE_CURSOR:"MOUSE_CURSOR"};var b={DEFAULT_ARROW:"DEFAULT_ARROW",ARROW_2:"ARROW_2",ARROW_3:"ARROW_3",ARROW_4:"ARROW_4",ARROW_5:"ARROW_5",ARROW_6:"ARROW_6",ARROW_7:"ARROW_7"};var I={NONE:"NONE",SHADOW:"SHADOW",BOX:"BOX"};var S={NO_BACKGROUND:"NO_BACKGROUND",ATTACHED_BACKGROUND:"ATTACHED_BACKGROUND",SEPARATED_BACKGROUND:"SEPARATED_BACKGROUND",DONT_SHOW:"DONT_SHOW"};var E={PERCENT:"PERCENT",PIXEL:"PIXEL"},O=r(60997);var T={SMART:"SMART",PIXEL:"PIXEL",PERCENT:"PERCENT"};var Z={ACTION:"ACTION",LINK:"LINK",NOTHING:"NOTHING",MAGNIFY:"MAGNIFY"};var L={HOVER:"HOVER",AUTO:"AUTO",CLICK:"CLICK"};var w={APPEARS:"APPEARS",DISAPPEARS:"DISAPPEARS",ALWAYS_SHOW:"ALWAYS_SHOW",NEVER_SHOW:"NEVER_SHOW"};var A={NO_EFFECT:"NO_EFFECT",FADE_IN:"FADE_IN",EXPAND:"EXPAND",SLIDE_UP:"SLIDE_UP",SLIDE_RIGHT:"SLIDE_RIGHT",SLIDE_DOWN:"SLIDE_DOWN",SLIDE_LEFT:"SLIDE_LEFT"};var R={LEFT:"LEFT",RIGHT:"RIGHT",BOTTOM:"BOTTOM",TOP:"TOP",CENTERED_VERTICALLY:"CENTERED_VERTICALLY",CENTERED_HORIZONTALLY:"CENTERED_HORIZONTALLY"};var C={PIXEL:"PIXEL",PERCENT:"PERCENT"};var N={NO_EFFECT:"NO_EFFECT",ZOOM_IN:"ZOOM_IN",TILT:"TILT",BLUR:"BLUR",GRAYSCALE:"GRAYSCALE",SHRINK:"SHRINK",INVERT:"INVERT",COLOR_IN:"COLOR_IN",DARKENED:"DARKENED",MAIN_COLOR:"MAIN_COLOR"};var x={NO_EFFECT:"NO_EFFECT",SLIDE:"SLIDE"};var D={BLUR:"BLUR",COLOR:"COLOR",MAIN_COLOR:"MAIN_COLOR"};var M={OFF:"OFF",HOVER:"HOVER"};var G={APPEARS:"APPEARS"};var H={LEFT_TO_RIGHT:"LEFT_TO_RIGHT",RIGHT_TO_LEFT:"RIGHT_TO_LEFT"};var k={NO_EFFECT:"NO_EFFECT",FADE_IN:"FADE_IN",GRAYSCALE:"GRAYSCALE",SLIDE_UP:"SLIDE_UP",EXPAND:"EXPAND",SHRINK:"SHRINK",ZOOM_OUT:"ZOOM_OUT",ONE_COLOR:"ONE_COLOR",MAIN_COLOR:"MAIN_COLOR",BLUR:"BLUR"};var B={PARTIAL:"PARTIAL",ALL:"ALL"};var z={SCROLL:"SCROLL",FADE:"FADE",DECK:"DECK"};var F={EASE:"cubic-bezier(0.46,0.1,0.25,1)"};var U={OFF:"OFF",INTERVAL:"INTERVAL",CONTINUOUS:"CONTINUOUS"};var W={LEFT:"LEFT",RIGHT:"RIGHT",CENTER:"CENTER"};var V={FULL:"FULL",SCALED_DOWN:"SCALED_DOWN"};var j={ON_GALLERY:"ON_GALLERY",OUTSIDE_GALLERY:"OUTSIDE_GALLERY"};var Y={events:n,deviceType:s.Z,isLayout:e=>t=>t[c.Z.layoutParams.structure.galleryLayout]===h[e],hasExternalAbovePlacement:O.Jn,hasExternalBelowPlacement:O.LC,hasHoverPlacement:O.Sy,hasExternalRightPlacement:O.p9,hasExternalLeftPlacement:O.bo,hasExternalVerticalPlacement:O.hd,hasExternalHorizontalPlacement:O.Xq,isExternalAbovePlacement:O.hj,isExternalBelowPlacement:O.eh,isHoverPlacement:O.mR,isExternalRightPlacement:O.Gk,isExternalLeftPlacement:O.Ie,isExternalVerticalPlacement:O.Re,isExternalHorizontalPlacement:O.qr,isConstantVerticalPlacement:O.DT,resizeMethods:o,socialNetworks:a,urlSizes:{RESIZED:"resized",MULTI:"multi",SCALED:"scaled",PIXEL:"pixel",THUMBNAIL:"thumbnail",SQUARE:"square",FULL:"full",SAMPLE:"sample",PRELOAD:"preload",DOWNLOAD:"download",DOWNLOAD_SAMPLE:"download_sample",MAGNIFIED:"magnified"},urlTypes:{HIGH_RES:"img",LOW_RES:"thumb",VIDEO:"video",THREE_D:"3d"},viewMode:i.Z,layoutParams_crop_method:l,layoutParams_crop_alignment:u,layoutParams_structure_galleryLayout:m,layoutParams_structure_groupsOrder:p,layoutParams_structure_layoutOrientation:d,layoutParams_structure_responsiveMode:y,layoutParams_structure_scrollDirection:g,layoutParams_groups_allowedGroupTypes:_,layoutParams_thumbnails_alignment:v,layoutParams_navigationArrows_verticalAlignment:P,layoutParams_navigationArrows_position:f,layoutParams_navigationArrows_type:b,layoutParams_navigationArrows_container_type:I,layoutParams_info_layout:S,layoutParams_info_sizeUnits:E,layoutParams_info_placement:O.ZP,layoutParams_targetItemSize_unit:T,behaviourParams_item_clickAction:Z,behaviourParams_item_video_playTrigger:L,behaviourParams_item_overlay_hoveringBehaviour:w,behaviourParams_item_overlay_hoverAnimation:A,behaviourParams_item_overlay_position:R,behaviourParams_item_overlay_sizeUnits:C,behaviourParams_item_content_hoverAnimation:N,behaviourParams_item_content_placementAnimation:x,behaviourParams_item_content_loader:D,behaviourParams_item_secondaryMedia_trigger:M,behaviourParams_item_secondaryMedia_behaviour:G,behaviourParams_gallery_layoutDirection:H,behaviourParams_gallery_scrollAnimation:k,behaviourParams_gallery_vertical_loadMore_amount:B,behaviourParams_gallery_horizontal_slideAnimation:z,behaviourParams_gallery_horizontal_slideTransition:F,behaviourParams_gallery_horizontal_autoSlide_behaviour:U,behaviourParams_gallery_horizontal_slideshowInfo_buttonsAlignment:W,behaviourParams_item_threeDimensionalScene_playTrigger:L,parse3DDimensions:e=>({x:parseFloat(e.split("x")[1].split("y")[0]),y:parseFloat(e.split("y")[1].split("z")[0]),z:parseFloat(e.split("z")[1])}),stylingParams_itemResolutionMode:V,layoutParams_thumbnails_position:j}},60997:function(e,t,r){"use strict";r.d(t,{DT:function(){return v},Gk:function(){return g},Ie:function(){return _},Jn:function(){return o},LC:function(){return s},Re:function(){return h},Sy:function(){return a},Xq:function(){return c},bo:function(){return l},eh:function(){return d},hd:function(){return u},hj:function(){return p},mR:function(){return y},p9:function(){return n},qr:function(){return m}});const i={OVERLAY:"OVERLAY",ABOVE:"ABOVE",BELOW:"BELOW",LEFT:"LEFT",RIGHT:"RIGHT",ALTERNATE_HORIZONTALLY:"ALTERNATE_HORIZONTALLY",ALTERNATE_VERTICALLY:"ALTERNATE_VERTICALLY"},a=e=>String(e).includes(i.OVERLAY),o=(e,t)=>String(e).includes(i.ABOVE)||t%2==0&&String(e).includes(i.ALTERNATE_VERTICALLY),s=(e,t)=>String(e).includes(i.BELOW)||t%2==1&&String(e).includes(i.ALTERNATE_VERTICALLY),n=(e,t)=>String(e).includes(i.RIGHT)||t%2==0&&String(e).includes(i.ALTERNATE_HORIZONTALLY),l=(e,t)=>String(e).includes(i.LEFT)||t%2==1&&String(e).includes(i.ALTERNATE_HORIZONTALLY),u=e=>o(e,0)||s(e,1),c=e=>n(e,0)||l(e,1),h=e=>u(e)&&!c(e)&&!a(e),m=e=>c(e)&&!u(e)&&!a(e),p=e=>String(e)===i.ABOVE,d=e=>String(e)===i.BELOW,y=e=>String(e)===i.OVERLAY,g=e=>String(e)===i.RIGHT,_=e=>String(e)===i.LEFT,v=e=>{const t=e.split(","),r=t.shift();return(e=>p(e)||d(e))(r)&&t.every((e=>e===r))};t.ZP=i},64153:function(e,t){"use strict";t.Z={SITE:"SITE",EDIT:"EDIT",PREVIEW:"PREVIEW",SEO:"SEO"}},30972:function(e,t,r){"use strict";r.d(t,{Z:function(){return y}});var i={};r.r(i),r.d(i,{debounce:function(){return s},get:function(){return n},isEqual:function(){return u},isFunction:function(){return l},isNumber:function(){return c},pick:function(){return a},throttle:function(){return o}});const a=(e,t)=>{const r={};return Object.entries(e||{}).forEach((([e,i])=>{t.indexOf(e)>=0&&(r[e]=i)})),r},o=(e,t)=>{let r=!1,i=!1;return(...a)=>{r?i=!0:(i=!1,e.apply(void 0,a),r=!0,setTimeout((()=>{i&&e.apply(void 0,a),r=!1}),t))}},s=(e,t)=>{let r;return(...i)=>{clearTimeout(r),r=setTimeout((()=>{e.apply(void 0,i)}),t)}},n=(e,t,r)=>{const i=String.prototype.split.call(t,/[,[\].]+?/).filter(Boolean).reduce(((e,t)=>null!=e?e[t]:e),e);return void 0===i||i===e?r:i},l=e=>"function"==typeof e,u=(e,t)=>{try{return JSON.stringify(e)===JSON.stringify(t)}catch(e){return!1}},c=e=>!isNaN(parseFloat(e))&&isFinite(e);var h=r(12146),m=r(47458),p=r(87352),d=r(93657);var y=new class{constructor(){this._cache={},this._hash2int={},this._params={},Object.assign(this,i)}shouldUseCache(){return!(0,m.wh)()&&!(0,m.g4)()&&!this.isSSR()}isUndefined(e){return void 0===e}uniqueBy(e,t){return e.filter(((e,r,i)=>i.map((e=>e[t])).indexOf(e[t])===r))}inRange(e,t,r=t){if(0===t)return-1;for(;e<0;)e+=t;for(;e>r;)e-=t;return e}sliceArrayWithRange(e,t,r){return Array(r-t).fill(0).map(((r,i)=>{const a=t+i;return e[this.inRange(a,e.length,e.length-1)]}))}sliceArrayIfAvailable(e,t,r){let i=Math.max(t,0),a=Math.min(r,e.length);return i>t&&(a=Math.min(a+(i-t),e.length)),a{i=t.split("="),i[0]===e&&(r=decodeURIComponent(i[1]))})),!r){const t=decodeURIComponent(a.pathname).split("?")[1];if(!t)return"";t.split("&").forEach((t=>{i=t.split("="),i[0]===e&&(r=decodeURIComponent(i[1]))}))}return this._params[e]=r,r}catch(e){return!1}}stripSlashes(e){let t="";return"string"==typeof e&&(t=e.replace(/\\\//g,"/").replace(/\\'/g,"'").replace(/\\"/g,'"').replace(/\\0/g,"\0").replace(/\\\\/g,"\\")),t}parseStringObject(e){if("string"!=typeof e)return e;const t=this.stripSlashes(e);if("string"==typeof e&&/^[\],:{}\s]*$/.test(t.replace(/\\["\\/bfnrtu]/g,"@").replace(/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+-]?\d+)?/g,"]").replace(/(?:^|:|,)(?:\s*\[)+/g,"")))try{return JSON.parse(t)}catch(e){}return t}hashCode(e){let t,r,i=0;if(0===e.length)return i;for(t=0;t{const e=this.parseGetParam("deviceType")||h.Z.deviceType,t="true"===this.parseGetParam("showMobileView"),r=(0,m.KH)();return!!t||(e?String(e).toLowerCase().indexOf("mobile")>=0:r||void 0)}))}isUserAgentMobile(){try{const e=()=>{let e=!1;var t;return t=navigator.userAgent||navigator.vendor||h.Z.opera,(/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|pixel|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino/i.test(t)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw-(n|u)|c55\/|capi|ccwa|cdm-|cell|chtm|cldc|cmd-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc-s|devi|dica|dmob|do(c|p)o|ds(12|-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(-|_)|g1 u|g560|gene|gf-5|g-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd-(m|p|t)|hei-|hi(pt|ta)|hp( i|ip)|hs-c|ht(c(-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i-(20|go|ma)|i230|iac( |-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|-[a-w])|libw|lynx|m1-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|-([1-8]|c))|phil|pire|pl(ay|uc)|pn-2|po(ck|rt|se)|prox|psio|pt-g|qa-a|qc(07|12|21|32|60|-[2-7]|i-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h-|oo|p-)|sdk\/|se(c(-|0|1)|47|mc|nd|ri)|sgh-|shar|sie(-|m)|sk-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h-|v-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl-|tdg-|tel(i|m)|tim-|t-mo|to(pl|sh)|ts(70|m-|m3|m5)|tx-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas-|your|zeto|zte-/i.test(t.substr(0,4)))&&(e=!0),e};return this.getOrPutFromCache("isUserAgentMobile",e)}catch(e){return!1}}isMobile(){return this.getOrPutFromCache("isMobile",(()=>{const e=this.isMobileByProps(),t=this.isUserAgentMobile();return this.isUndefined(e)?t:e}))}isTouch(){return this.getOrPutFromCache("isTouch",(()=>{var e;const t=(0,m.dh)(),r=(null===(e=h.Z.navigator)||void 0===e?void 0:e.maxTouchPoints)>0||"ontouchstart"in h.Z.document.documentElement;return this.isUndefined(t)?r:t}))}isTest(){try{return h.Z.isTest}catch(e){return!1}}isLocal(){try{const e=h.Z.location.hostname;return"local.wix.com"===e||(e.indexOf("localhost")>=0||"true"===this.parseGetParam("debug"))}catch(e){return!1}}isDev(){return this.getOrPutFromCache("isDev",(()=>this.shouldDebug("ph_local")||this.isOOI()&&!1||"true"===(this.safeLocalStorage()||{}).forceDevMode))}isVerbose(){return!this.isTest()&&"true"===(this.safeLocalStorage()||{}).forceDevMode}isStoreGallery(){return this.getOrPutFromCache("isStoreGallery",(()=>{try{return h.Z.location.search.toLowerCase().indexOf("isstore")>-1}catch(e){return this.isDev()&&console.error("cant find window",e),!1}}))}isSSR(){return void 0===(null===r.g||void 0===r.g?void 0:r.g.window)}isOOI(){return this.isSSR()||"undefined"!=typeof top&&"undefined"!=typeof self&&(top===self||self.location.origin.includes("editor.wix.com"))}generateUUID(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(e=>{const t=Math.floor(16*Math.random())||0;return"x"===e?t.toString(16):e}))}isExternalUrl(e){return/(^https?)|(^data)|(^blob)/.test(e)}isiOS(){return this.getOrPutFromCache("isiOS",(()=>{try{return/iPad|iPhone|iPod/.test(navigator.userAgent)&&!h.Z.MSStream}catch(e){return!1}}))}isiPhone(){return this.getOrPutFromCache("isiPhone",(()=>{try{return/iPhone/.test(navigator.userAgent)&&!h.Z.MSStream}catch(e){return!1}}))}isLandscape(){return this.getOrPutFromCache("isLandscape",(()=>{if(!this.isMobile())return!1;try{if(this.isUndefined(h.Z.orientation)){const e=h.Z.matchMedia("(orientation: landscape)");return!(!e||!0!==e.matches)}return 90===h.Z.orientation||-90===h.Z.orientation}catch(e){return!1}}))}safeLocalStorage(){try{return localStorage||h.Z}catch(e){return h.Z}}shouldDebug(e){try{return!!this.safeLocalStorage()[e]||(h.Z.debugApp||"").indexOf(e)>=0||(this.parseGetParam("debugApp")||"").indexOf(e)>=0}catch(e){return!1}}deviceHasMemoryIssues(){return this.isiOS()}getTabIndex(e){const t=["currentGalleryItem","loadMoreButton","slideshowNext","slideshowPrev","currentThumbnail","slideshowLove","slideshowShare","cartIcon","cartClose","cartFrame","fullscreenClose","fullscreenNext","fullscreenPrev","fullscreenInfo","fullscreenLink","fullscreenProvider","fullscreenCartButton","fullscreenCheckout","fullscreenExpand","fullscreenVideoPlay","fullscreenVideoBar","fullscreenVideoMute","fullscreenVideoVolume","fullscreenCartIcon","fullscreenDownload","fullscreenLove","fullscreenShare"].indexOf(e)+1;return t>=0&&this.isOOI()?0:t||-1}setStateAndLog(e,t,r,i){if(this.isVerbose()){console.log(`State Change Called (${t})`,r);const a=Object.assign({},e.state);e.setState(r,(()=>{const r=Object.assign({},e.state),o=this.printableObjectsDiff(a,r,"state");Object.keys(o).length>0&&console.log(`State Change Completed (${t})`,o),this.isFunction(i)&&i.bind(e)()}))}else e.setState(r,(()=>{this.isFunction(i)&&i.bind(e)()}))}printableObjectsDiff(e,t,r=""){const i=e=>(""===e?e="''":this.isUndefined(e)&&(e="undefined"),String(e)),a=(e={},t={},r,o=1)=>{if(o>3)return{};return Object.entries(e).reduce(((e,[s,n])=>(this.isEqual(n,t[s])||(Array.isArray(t[s])?(n.length!==t[s].length&&(e[s+".length"]="["+n.length+"] => ["+t[s].length+"]"),e=Object.assign(e,a(n,t[s],(r?r+".":"")+s,o+1))):"object"==typeof t[s]?e=Object.assign(e,a(n,t[s],(r?r+".":"")+s,o+1)):e[(r?r+".":"")+s]=i(n)+" => "+i(t[s])),e)),{})};return a(e,t,r,1)}getScreenWidth(){if((0,m.g4)()&&this.isMobile())return 320;if(this.isTest())return 1920;try{return this.isLandscape()?Math.max(h.Z.screen.width,h.Z.screen.height):h.Z.screen.width}catch(e){return 1920}}getScreenHeight(){if(this.isTest())return 1200;try{return this.isLandscape()?Math.min(h.Z.screen.width,h.Z.screen.height):h.Z.screen.height}catch(e){return 1200}}getWindowWidth(){try{return h.Z.innerWidth||980}catch(e){return 980}}getMobileEnabledClick(e){return this.isMobile()?{onTouchEnd:e}:{onClick:e}}getTopUrlParam(e){if(this.isUndefined(this._cache.params)&&(this._cache.params={}),this.isUndefined(this._cache.params[e]))try{this._cache.params[e]=top.location.search.replace("?","").split("&").map((t=>{const r=t.split("=");return r[0]===e&&r[1]||""})).join("")}catch(t){this._cache.params[e]=!1}return this._cache.params[e]}scrollTo(e,t,r,i,a){this.isMobile()&&(r=0);const o=i?e.scrollLeft:e.scrollTop,s=t-o;let n=0;const l=()=>{n+=20;const t=((e,t,r,i)=>0===i?r+t:(e/=i/2)<1?r/2*e*e+t:-r/2*(--e*(e-2)-1)+t)(n,o,s,r);n"object"!=typeof t&&-1===String(e).indexOf("Expand")&&-1===String(e).indexOf("Color"))).map((([e,t])=>`${e}=${encodeURI(t)}`)).join("&");console.log("Gallery Playground link:",`https://pro-gallery.surge.sh?${t}`)}}catch(e){console.error(e)}}isSingleItemHorizontalDisplay(e){return e.scrollDirection===p.Z[d.Z.layoutParams.structure.scrollDirection].HORIZONTAL&&1===e[d.Z.layoutParams.groups.groupSize]&&e[d.Z.layoutParams.crop.enable]&&1===e[d.Z.layoutParams.crop.ratios].length&&"100%/100%"===e[d.Z.layoutParams.crop.ratios][0]}getAriaAttributes({proGalleryRole:e,proGalleryRegionLabel:t}){const r="application"===e?"gallery application":"region",i={role:e||"region","aria-label":t};return(e||"region")!==r&&(i["aria-roledescription"]=r),i}focusGalleryElement(e){e.focus()}isMeaningfulString(e){return"string"==typeof e&&!!e.trim().length}isHeightSetByGallery(e){return e[d.Z.layoutParams.structure.scrollDirection]===p.Z[d.Z.layoutParams.structure.scrollDirection].VERTICAL&&!e[d.Z.behaviourParams.gallery.vertical.loadMore.enable]}}},47458:function(e,t,r){"use strict";r.d(t,{Ce:function(){return o},KH:function(){return c},Vg:function(){return u},bK:function(){return s},dh:function(){return h},g4:function(){return l},wh:function(){return n}});var i=r(64153),a=r(6803);const o=new class{constructor(){this.setViewMode=this.setViewMode.bind(this),this.isSiteMode=this.isSiteMode.bind(this),this.isEditMode=this.isEditMode.bind(this),this.isPreviewMode=this.isPreviewMode.bind(this),this.isSEOMode=this.isSEOMode.bind(this),this.setDeviceType=this.setDeviceType.bind(this),this.isDeviceTypeDesktop=this.isDeviceTypeDesktop.bind(this),this.isDeviceTypeMobile=this.isDeviceTypeMobile.bind(this),this.isDeviceTypeTablet=this.isDeviceTypeTablet.bind(this),this.isDeviceTypeTouch=this.isDeviceTypeTouch.bind(this),this._viewMode=i.Z.SITE,this._deviceType=a.Z.DESKTOP}setViewMode(e){this._viewMode=e}setDeviceType(e){this._deviceType=e}isDeviceTypeMobile(){return this._deviceType===a.Z.MOBILE}isDeviceTypeTablet(){return this._deviceType===a.Z.TABLET}isDeviceTypeDesktop(){return this._deviceType===a.Z.DESKTOP}isDeviceTypeTouch(){return this.isDeviceTypeMobile()||this.isDeviceTypeTablet()}isSiteMode(){return this._viewMode===i.Z.SITE}isEditMode(){return this._viewMode===i.Z.EDIT}isPreviewMode(){return this._viewMode===i.Z.PREVIEW}isSEOMode(){return this._viewMode===i.Z.SEO}},s=o.isSiteMode,n=o.isEditMode,l=o.isPreviewMode,u=o.isSEOMode,c=o.isDeviceTypeMobile,h=(o.isDeviceTypeTablet,o.isDeviceTypeDesktop,o.isDeviceTypeTouch)},12146:function(e,t,r){"use strict";r.d(t,{Z:function(){return d},h:function(){return p}});const i=()=>({}),a=2560,o=1440,s={y:0,x:0,width:a,height:o,innerWidth:a,innerHeight:o,outerWidth:a,outerHeight:o,clientWidth:a,clientHeight:o},n=Object.assign(Object.assign({},s),{getBoundingClientRect:()=>s}),l=Object.assign({addEventListener:i,removeEventListener:i,createEvent:i,getElementById:()=>n,getElementsByClassName:()=>[n],getElementsByTagName:()=>[n],querySelector:()=>[n],documentElement:n,activeElement:n,style:s},s);l.body=l;const u=Object.assign(Object.assign({},s),{scrollTop:0,scrollY:0}),c=Object.assign({isMock:!0,isSSR:!0,orientation:0,devicePixelRatio:1,addEventListener:i,removeEventListener:i,createEvent:i,CustomEvent:i,screen:s,open:i,petri:{},search:{},location:{href:"http://mock.wix.com/",protocol:"http:",host:"mock.wix.com",hostname:"mock.wix.com",port:"",pathname:"/",search:"",hash:""},postMessage:i,requestAnimationFrame:i,dispatchEvent:i,document:l,getComputedStyle:i,localStorage:{},frames:[]},u),h=new Map(Object.keys(u).map((e=>[e,u[e]])));c.parent=c;var m=c;const p=new class{constructor(){this.shouldUseMock=!0,this.initProxyWindow=this.initProxyWindow.bind(this),this.windowIsAvailable()?this.initProxyWindow():this.initMockWindow()}windowIsAvailable(){try{return"undefined"!=typeof window}catch(e){return!1}}initProxyWindow(){const e={get:function(e,t){return h.has(t)&&this.shouldUseMock?h.get(t):e[t]}.bind(this),set:function(e,t,r){return Reflect.set(e,t,r)}},t=new Proxy(window,e),r={get:function(e,r){return t.proGalleryCustomProps.has(r)||"function"!=typeof t[r]?t[r]:t[r].bind(window)},set:function(e,r,i){return t.proGalleryCustomProps.add(r),Reflect.set(t,r,i)}};t.proGalleryCustomProps||(t.proGalleryCustomProps=new Set),this.window=new Proxy({},r)}initMockWindow(){this.window=m,this.window.mockInstanceId=Math.floor(1e5*Math.random())}stopUsingMock(){this.shouldUseMock=!1}get shouldUseMock(){return this._shouldUseMock}set shouldUseMock(e){this._shouldUseMock=e}};var d=p.window},93657:function(e,t){"use strict";t.Z={layoutParams:{groups:{density:"layoutParams_groups_density",groupByOrientation:"layoutParams_groups_groupByOrientation",numberOfGroupsPerRow:"layoutParams_groups_numberOfGroupsPerRow",allowedGroupTypes:"layoutParams_groups_allowedGroupTypes",repeatingGroupTypes:"layoutParams_groups_repeatingGroupTypes",groupSize:"layoutParams_groups_groupSize"},crop:{method:"layoutParams_crop_method",alignment:"layoutParams_crop_alignment",enable:"layoutParams_crop_enable",enableSmartCrop:"layoutParams_crop_enableSmartCrop",cropOnlyFill:"layoutParams_crop_cropOnlyFill",ratios:"layoutParams_crop_ratios"},structure:{galleryLayout:"layoutParams_structure_galleryLayout",galleryRatio:{value:"layoutParams_structure_galleryRatio_value",includeExternalInfo:"layoutParams_structure_galleryRatio_includeExternalInfo"},enableStreching:"layoutParams_structure_enableStreching",gallerySpacing:"layoutParams_structure_gallerySpacing",itemSpacing:"layoutParams_structure_itemSpacing",scrollDirection:"layoutParams_structure_scrollDirection",numberOfColumns:"layoutParams_structure_numberOfColumns",numberOfGridRows:"layoutParams_structure_numberOfGridRows",responsiveMode:"layoutParams_structure_responsiveMode",columnRatios:"layoutParams_structure_columnRatios",scatter:{randomScatter:"layoutParams_structure_scatter_randomScatter",manualScatter:"layoutParams_structure_scatter_manualScatter"},layoutOrientation:"layoutParams_structure_layoutOrientation",groupsOrder:"layoutParams_structure_groupsOrder"},thumbnails:{enable:"layoutParams_thumbnails_enable",position:"layoutParams_thumbnails_position",spacing:"layoutParams_thumbnails_spacing",marginToGallery:"layoutParams_thumbnails_marginToGallery",size:"layoutParams_thumbnails_size",alignment:"layoutParams_thumbnails_alignment"},navigationArrows:{enable:"layoutParams_navigationArrows_enable",size:"layoutParams_navigationArrows_size",padding:"layoutParams_navigationArrows_padding",position:"layoutParams_navigationArrows_position",verticalAlignment:"layoutParams_navigationArrows_verticalAlignment",type:"layoutParams_navigationArrows_type",container:{type:"layoutParams_navigationArrows_container_type",borderRadius:"layoutParams_navigationArrows_container_borderRadius",backgroundColor:"layoutParams_navigationArrows_container_backgroundColor"},mouseCursorContainerMaxWidth:"layoutParams_navigationArrows_mouseCursorContainerMaxWidth"},info:{sizeUnits:"layoutParams_info_sizeUnits",width:"layoutParams_info_width",height:"layoutParams_info_height",spacing:"layoutParams_info_spacing",layout:"layoutParams_info_layout",border:{width:"layoutParams_info_border_width",color:"layoutParams_info_border_color",radius:"layoutParams_info_border_radius"},placement:"layoutParams_info_placement"},targetItemSize:{unit:"layoutParams_targetItemSize_unit",value:"layoutParams_targetItemSize_value",minimum:"layoutParams_targetItemSize_minimum"}},behaviourParams:{item:{clickAction:"behaviourParams_item_clickAction",video:{speed:"behaviourParams_item_video_speed",volume:"behaviourParams_item_video_volume",loop:"behaviourParams_item_video_loop",playTrigger:"behaviourParams_item_video_playTrigger",enablePlayButton:"behaviourParams_item_video_enablePlayButton",enableThumbnailsPlayButton:"behaviourParams_item_video_enableThumbnailsPlayButton",enableControls:"behaviourParams_item_video_enableControls",enablePlaceholder:"behaviourParams_item_video_enablePlaceholder"},threeDimensionalScene:{transform:{rotation:"behaviourParams_item_threeDimensionalScene_transform_rotation",scale:"behaviourParams_item_threeDimensionalScene_transform_scale",position:"behaviourParams_item_threeDimensionalScene_transform_position"},controls:{enableZoom:"behaviourParams_item_threeDimensionalScene_controls_enableZoom",enableRotate:"behaviourParams_item_threeDimensionalScene_controls_enableRotate",enablePan:"behaviourParams_item_threeDimensionalScene_controls_enablePan",enableAutoRotate:"behaviourParams_item_threeDimensionalScene_controls_enableAutoRotate"},enablePlayButton:"behaviourParams_item_threeDimensionalScene_enablePlayButton",enableThumbnailsPlayButton:"behaviourParams_item_threeDimensionalScene_enableThumbnailsPlayButton",playTrigger:"behaviourParams_item_threeDimensionalScene_playTrigger"},overlay:{hoveringBehaviour:"behaviourParams_item_overlay_hoveringBehaviour",hoverAnimation:"behaviourParams_item_overlay_hoverAnimation",position:"behaviourParams_item_overlay_position",size:"behaviourParams_item_overlay_size",sizeUnits:"behaviourParams_item_overlay_sizeUnits",padding:"behaviourParams_item_overlay_padding",backgroundColor:"behaviourParams_item_overlay_backgroundColor"},content:{hoverAnimation:"behaviourParams_item_content_hoverAnimation",placementAnimation:"behaviourParams_item_content_placementAnimation",loader:"behaviourParams_item_content_loader",magnificationValue:"behaviourParams_item_content_magnificationValue",tiltAngleValue:"behaviourParams_item_content_tiltAngleValue"},secondaryMedia:{trigger:"behaviourParams_item_secondaryMedia_trigger",behaviour:"behaviourParams_item_secondaryMedia_behaviour"}},gallery:{layoutDirection:"behaviourParams_gallery_layoutDirection",blockContextMenu:"behaviourParams_gallery_blockContextMenu",scrollAnimation:"behaviourParams_gallery_scrollAnimation",enableIndexingShareLinks:"behaviourParams_gallery_enableIndexingShareLinks",vertical:{loadMore:{enable:"behaviourParams_gallery_vertical_loadMore_enable",amount:"behaviourParams_gallery_vertical_loadMore_amount",text:"behaviourParams_gallery_vertical_loadMore_text"}},horizontal:{enableScrollSnap:"behaviourParams_gallery_horizontal_enableScrollSnap",slideAnimation:"behaviourParams_gallery_horizontal_slideAnimation",slideTransition:"behaviourParams_gallery_horizontal_slideTransition",blockScroll:"behaviourParams_gallery_horizontal_blockScroll",navigationDuration:"behaviourParams_gallery_horizontal_navigationDuration",loop:"behaviourParams_gallery_horizontal_loop",autoSlide:{behaviour:"behaviourParams_gallery_horizontal_autoSlide_behaviour",interval:"behaviourParams_gallery_horizontal_autoSlide_interval",pauseOnHover:"behaviourParams_gallery_horizontal_autoSlide_pauseOnHover",speed:"behaviourParams_gallery_horizontal_autoSlide_speed"},slideshowInfo:{buttonsAlignment:"behaviourParams_gallery_horizontal_slideshowInfo_buttonsAlignment",enableCounter:"behaviourParams_gallery_horizontal_slideshowInfo_enableCounter",enablePlayButton:"behaviourParams_gallery_horizontal_slideshowInfo_enablePlayButton"}}}},stylingParams:{arrowsColor:"stylingParams_arrowsColor",itemShadowBlur:"stylingParams_itemShadowBlur",itemShadowDirection:"stylingParams_itemShadowDirection",itemShadowOpacityAndColor:"stylingParams_itemShadowOpacityAndColor",itemShadowSize:"stylingParams_itemShadowSize",itemEnableShadow:"stylingParams_itemEnableShadow",itemBorderRadius:"stylingParams_itemBorderRadius",itemBorderWidth:"stylingParams_itemBorderWidth",itemBorderColor:"stylingParams_itemBorderColor",itemResolutionMode:"stylingParams_itemResolutionMode"}}},459:function(e,t,r){"use strict";var i=r(15704);function a(){}function o(){}o.resetWarningCache=a,e.exports=function(){function e(e,t,r,a,o,s){if(s!==i){var n=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw n.name="Invariant Violation",n}}function t(){return e}e.isRequired=e;var r={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:o,resetWarningCache:a};return r.PropTypes=r,r}},60216:function(e,t,r){e.exports=r(459)()},15704:function(e){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},72124:function(e,t,r){"use strict";var i=r(34111),a=r(54516);function o(e,t){return t.encode?t.strict?i(e):encodeURIComponent(e):e}function s(e){return Array.isArray(e)?e.sort():"object"==typeof e?s(Object.keys(e)).sort((function(e,t){return Number(e)-Number(t)})).map((function(t){return e[t]})):e}t.Qc=function(e,t){var r=function(e){var t;switch(e.arrayFormat){case"index":return function(e,r,i){t=/\[(\d*)\]$/.exec(e),e=e.replace(/\[\d*\]$/,""),t?(void 0===i[e]&&(i[e]={}),i[e][t[1]]=r):i[e]=r};case"bracket":return function(e,r,i){t=/(\[\])$/.exec(e),e=e.replace(/\[\]$/,""),t?void 0!==i[e]?i[e]=[].concat(i[e],r):i[e]=[r]:i[e]=r};default:return function(e,t,r){void 0!==r[e]?r[e]=[].concat(r[e],t):r[e]=t}}}(t=a({arrayFormat:"none"},t)),i=Object.create(null);return"string"!=typeof e?i:(e=e.trim().replace(/^(\?|#|&)/,""))?(e.split("&").forEach((function(e){var t=e.replace(/\+/g," ").split("="),a=t.shift(),o=t.length>0?t.join("="):void 0;o=void 0===o?null:decodeURIComponent(o),r(decodeURIComponent(a),o,i)})),Object.keys(i).sort().reduce((function(e,t){var r=i[t];return Boolean(r)&&"object"==typeof r&&!Array.isArray(r)?e[t]=s(r):e[t]=r,e}),Object.create(null))):i},t.Pz=function(e,t){var r=function(e){switch(e.arrayFormat){case"index":return function(t,r,i){return null===r?[o(t,e),"[",i,"]"].join(""):[o(t,e),"[",o(i,e),"]=",o(r,e)].join("")};case"bracket":return function(t,r){return null===r?o(t,e):[o(t,e),"[]=",o(r,e)].join("")};default:return function(t,r){return null===r?o(t,e):[o(t,e),"=",o(r,e)].join("")}}}(t=a({encode:!0,strict:!0,arrayFormat:"none"},t));return e?Object.keys(e).sort().map((function(i){var a=e[i];if(void 0===a)return"";if(null===a)return o(i,t);if(Array.isArray(a)){var s=[];return a.slice().forEach((function(e){void 0!==e&&s.push(r(i,e,s.length))})),s.join("&")}return o(i,t)+"="+o(a,t)})).filter((function(e){return e.length>0})).join("&"):""}},34111:function(e){"use strict";e.exports=function(e){return encodeURIComponent(e).replace(/[!'()*]/g,(function(e){return"%"+e.charCodeAt(0).toString(16).toUpperCase()}))}},60484:function(t){"use strict";t.exports=e},5329:function(e){"use strict";e.exports=t},95561:function(e){"use strict";e.exports=r},448:function(e){function t(){return e.exports=t=Object.assign?Object.assign.bind():function(e){for(var t=1;t"done"===i?t=>(r,i)=>{((t,r)=>{const i=e[t];i&&i.forEach((e=>e(r)))})(r,i),t&&t(r,i)}:r=>{const a=i;return e[a]||(e[a]=[]),e[a].push(r),t}});return t}var o=n(20011),s=n(77997),u=n(92119);var c=n(95561),h=n.n(c);const m=()=>{const[e,t]=(0,r.useState)(!1),i=(0,r.useRef)(null);return(0,r.useEffect)((()=>{n.e(94224).then(n.bind(n,27086)).then((e=>{i.current=e.ProFullscreen,t(!0)}))}),[]),[e,i.current]};var p=n(99127);function d(e){const[t]=function(){const[e,t]=(0,r.useState)({width:window.innerWidth,height:window.innerHeight});return(0,r.useEffect)((()=>{const e=()=>{t({width:window.innerWidth,height:window.innerHeight})};return window.addEventListener("resize",e),()=>{window.removeEventListener("resize",e)}})),[e]}(),[a,o]=m();return a?i().createElement("div",{className:"pro-fullscreen-wrapper",style:e.rootCss},i().createElement(o,{forceProGallerySlider:!0,items:e.items,initialIdx:e.fullscreenIdx,totalItemsCount:e.items.length,container:e.container?e.container:t,locale:e.locale,styles:e.options,isAccessible:e.isAccessible,galleryId:e.galleryId,viewMode:e.viewMode,noFollowForSEO:e.noFollowForSEO,eventsListener:t=>{if("CLOSE_FULLSCREEN"===t)e.setFullscreenIdx&&e.setFullscreenIdx(-1)},itemsLoveData:[],deviceType:e.deviceType,isPreview:e.viewMode===p.Z.viewMode.PREVIEW,animationDuration:e.animationDuration,shouldUseNewSocialSharePopup:!1,createMediaUrl:e.createMediaUrl||u.N,staticMediaUrls:e.staticMediaUrls,backgroundFilterElementSelector:e.backgroundFilterElementSelector||"#SITE_CONTAINER"})):null}const y=e=>t=>{const[r,s]=i().useState(-1),n=a().ITEM_ACTION_TRIGGERED((e=>{let{idx:r}=e;t.enableFullscreen&&s(r)})).done(t.eventsListener);return i().createElement(i().Fragment,null,i().createElement(e,(0,o.Z)({},t,{eventsListener:n}),-1!==r&&t.enableFullscreen&&h().createPortal(i().createElement(d,{deviceType:t.deviceType,options:t.fullscreenOptions,setFullscreenIdx:s,fullscreenIdx:r,items:t.items,viewMode:t.viewMode}),document.body),t.children))};var g=n(91753),_=function(e){var t=e.dataId,r=e.title,i=e.description,a=e.image,o=a.uri,s=a.width,n=a.height,l=a.link;return{itemId:t,mediaUrl:o,orderIndex:0,metaData:{type:"image",height:n,width:s,title:r,description:i,sourceName:"private",link:{url:null==l?void 0:l.href,type:"web",target:null==l?void 0:l.target}}}},v=function(e){var t=function(e){var t=0;if(void 0===e||0===e.length)return t;for(var r=0;r0){var a=i[0].replace(/\//g,"").split("_").map((function(e){return Number(e)})),o=a[0],s=a[1];o>0&&s>0&&(r=!0,t={originWidth:o,originHeight:s})}}catch(e){r=!1}if(!r)try{var n=/wm_(.*)\//.exec(e);if(n&&n[0]&&n[0].length>0){var l=n[1];l.length>0&&(t.watermark=l)}}catch(e){r=!1}if(!r)try{e.split("#").pop().split("&").map((function(e){return e.split("=")})).forEach((function(e){t[e[0]]=isNaN(Number(e[1]))?String(e[1]):Number(e[1])}))}catch(e){r=!1}return t},L=function(e,t){return void 0===t&&(t=0),function(e){return!!(e.src||e.type&&e.html)}(e)?function(e,t){var r,i,a,o=Z(e.src);"video"===(null==(r=e.type)?void 0:r.toLowerCase())&&(null!=(i=e.src)&&i.includes("youtube")||null!=(a=e.src)&&a.includes("vimeo"))&&(o.originWidth=1920,o.originHeight=1080),o.width=e.width||o.originWidth||o.originalWidth||o.posterWidth||1,o.height=e.height||o.originHeight||o.originalHeight||o.posterHeight||1;var s,n=e.settings&&e.settings.focalPoint,l=o.watermark,u=e.imageToken||e.token||o.token,c=(e.type||"image").toLowerCase(),h=b({itemId:P(e.slug)||(P(e.title||e.id)||v(e.src||e.html||t))+"_"+t,mediaUrl:O(e.src),metaData:Object.assign(b({type:c,alt:e.alt||"",title:e.title||"",description:e.description||"",name:T(e.src),fileName:T(e.src),link:S(e.link,e.target),width:o.width,height:o.height,sourceName:"private"},"customButtonText"in e&&{customButtonText:e.customButtonText}),n?{focalPoint:n}:{},l?{watermarkStr:l}:{}),orderIndex:t},u&&{token:u});if("text"===c){var m=e.style;h.metaData.height=o.height||500,h.metaData.width=o.width||500*m.layoutRatio,h.metaData.textStyle={width:h.metaData.width,height:h.metaData.height,backgroundColor:m.fillColor},h.metaData.html=h.editorHtml=e.html}if("video"===c){var p={};e.thumbnail&&(p=Z(e.thumbnail));var d=(s=O(e.thumbnail),null!==/^.*\.(jpeg|jpg|webp|png|jpe).*$/.exec(s)?O(e.thumbnail):o.posterUri);h.metaData.posters=[{url:d,width:p.width||o.width,height:p.height||o.height}],h.isExternal=0===e.src.indexOf("http"),h.isExternal||E(e.src)?(h.metaData.source=e.src.indexOf("youtube.com")>0?"youtube":e.src.indexOf("vimeo.com")>0?"vimeo":"wix",h.metaData.videoUrl=e.src):h.metaData.qualities=[{width:o.width,height:o.height,quality:o.height+"p",formats:[E(e.src)?"wix":e.src.split(/#|\?/)[0].split(".").pop().trim()]}]}return h}(e,t):function(e,t){return{itemId:v(t+"_"+(e.uri||e.alt||t)),mediaUrl:e.uri||"",metaData:{height:e.height||1,lastModified:Date.now(),link:S(e.link,e.target),title:e.title||"",description:e.description||"",alt:e.alt||"",sourceName:"private",tags:[],width:e.width||1},orderIndex:t}}(e,t)};function w(e){return _(e)}const A=e=>{try{return e.map(((e,t)=>"3d"===e.type?function(e,t){const r=L({...e,type:"video"},t),i={width:300,height:300};return{mediaUrl:e.src,orderIndex:t,itemId:r.itemId,metaData:{type:"3d",...i,poster:{...r.metaData.posters[0],...i},scene:{transform:{rotation:e.rotation&&`x${e.rotation.x}y${e.rotation.y}z${e.rotation.z}`,scale:e.scale&&`x${e.scale.x}y${e.scale.y}z${e.scale.z}`,position:e.position&&`x${e.position.x}y${e.position.y}z${e.position.z}`},controls:{enableAutoRotate:e.enableAutoRotate,enablePan:e.enablePan,enableRotate:e.enableRotate,enableZoom:e.enableZoom}},title:e.title,description:e.description,alt:e.alt}}}(e,t):L(e,t))).map(((t,r)=>{const i=e[r];return i.secondaryMedia&&"video"!==t.metaData.type&&(i.secondaryMedia.type=t.metaData.type,t.secondaryMedia=L(i.secondaryMedia,r)),t}))}catch(t){console.error("Wrong format for gallery items",e,t)}return[]},R=!1;function C(e,t){return"wixSDK"===t?e=A(e):"organizeMedia"===t&&(e=e.map(w)),e}function N(e){return x({newItems:e})}function x(e){let{newItems:t,currentItems:r=[]}=e;const{itemsToSet:i,shouldGetVideoUrls:a}=function(e){let t,r=!1;try{t=e.map((e=>{let{item:t,convertedToPlaceholder:i}=function(e){let t=!1;M(e)&&(e=function(e){return{itemId:e.itemId,mediaUrl:e.metaData.posters[0].url,orderIndex:0,metaData:{...e.metaData,type:"image",isVideoPlaceholder:!0,videoPlaceholderUrl:`https://video.wixstatic.com/video/${G(e)}/480p/mp4/file.mp4`,height:e.metaData.posters[0].height,width:e.metaData.posters[0].width}}}(e),t=!0);return{item:e,convertedToPlaceholder:t}}(e);if(!r&&i&&(r=!0),"string"==typeof t.metaData)try{t={...t,metaData:JSON.parse(t.metaData)}}catch(e){console.error("Failed parse item metaData",e)}return t}))}catch(t){console.error("corrupt items",e,"returning old items instead",t)}return{itemsToSet:t,shouldGetVideoUrls:r}}(t);return{items:r.concat(i),shouldGetVideoUrls:a}}function D(e){let{newItems:t,currentItems:r=[]}=e;return function(e){const t=e.map((e=>M(e)?function(e){const t=G(e);return(0,g.getVideoURLs)(t).then((t=>{if(e.metaData.qualities=t.filter((e=>"MP4"===e.type)).map((t=>{const r=t.url,i=t.quality,a=parseInt(i,10);return{url:r,height:a,width:Math.floor(a*e.metaData.width/e.metaData.height),quality:i,formats:["mp4"]}})),e.metaData.videoUrl=void 0,R){const r=t.filter((e=>"HLS"===e.type));r.length>0&&(e.metaData.videoUrl=r[0].url)}else e.metaData.ghostItem=!0;return e})).catch((t=>(e.metaData.ghostItem=!0,e)))}(e):Promise.resolve(e)));return Promise.all(t)}(t).then((e=>x({newItems:e,currentItems:r}).items))}function M(e){return!e.metaData.ghostItem&&(e.metaData.videoUrl&&e.metaData.videoUrl.includes("wix:video://")||"video"===e.metaData.type&&e.mediaUrl&&!e.metaData.videoUrl)}function G(e){return e.metaData.videoUrl&&e.metaData.videoUrl.includes("wix:video://")?e.metaData.videoUrl.split("/")[3]||e.itemId:e.mediaUrl}var H=n(47169);class k{constructor(){(0,H.Z)(this,"promise",void 0),(0,H.Z)(this,"reject",void 0),(0,H.Z)(this,"resolve",void 0),this.promise=new Promise(((e,t)=>{this.reject=t,this.resolve=e}))}}class B{constructor(){(0,H.Z)(this,"itemDimensionsCache",{}),(0,H.Z)(this,"itemsDimensions",{}),(0,H.Z)(this,"preloadedItems",{})}preloadItem(e,t){if(e&&e.itemId&&e.mediaUrl)try{const r=e.itemId;if(this.itemsDimensions[r])return;if(void 0!==this.preloadedItems[r])return;return this.preloadedItems[r]=new Image,this.preloadedItems[r].src=e.mediaUrl,"function"==typeof t&&(this.preloadedItems[r].onload=e=>{t(e)}),this.preloadedItems[r]}catch(t){return void console.error("Could not preload item",e,t)}}addSentDimensionsToCache(e){e.forEach((e=>{this.itemDimensionsCache[e.mediaUrl]=e}))}isDimensionless(e){try{if(!e.metaData.height||!e.metaData.width)return!0;if(e.metaData.height<=1||e.metaData.width<=1)return!0}catch(t){console.error("corrupt item, cant check for dimensions",e,t)}return!1}isSSR(){try{return!window}catch(e){return!0}}loadItemsDimensionsIfNeeded(e,t){if(this.isSSR())return;if(!(e&&e.length>0))return;const r=e.filter((e=>{try{return!this.itemDimensionsCache[e.mediaUrl]&&this.isDimensionless(e)}catch(e){return!1}}));if(!r.length)return;const i=r.map((()=>new k));r.forEach(((e,t)=>{const r=i[t];this.preloadItem(e,(t=>{try{const i=t.srcElement,a=e.itemId,o=e.mediaUrl,s={width:i.width,height:i.height,measured:!0,itemId:a,mediaUrl:o};this.itemsDimensions[a]=s,r.resolve(this.itemsDimensions[a])}catch(e){console.error("Could not calc element dimensions",e)}}))})),Promise.all(i.map((e=>e.promise))).then((r=>{this.addSentDimensionsToCache(r);const i=e.map((e=>this.addDimensionsFromCache(e)));t(i)}))}addDimensionsFromCache(e){const t=this.itemDimensionsCache[e.mediaUrl];return t?{...e,metaData:{...e.metaData,width:t.width,height:t.height},measured:!0}:null}}const z=e=>!!e.mediaUrl||e.metaData&&!!e.metaData.html,F=function(e,t,i,a,o){void 0===i&&(i=50);const s=(0,r.useRef)(new B),n=(0,r.useMemo)((()=>C(e,t)),[e,t]),l=()=>o?n:n.slice(0,i),[u,c]=(0,r.useState)(N(l()).items),h=(0,r.useRef)(u),m=e=>{c(e),h.current=e};(0,r.useEffect)((()=>{p(l())}),[n]);const p=function(e,t){void 0===t&&(t=[]);const{items:r,shouldGetVideoUrls:i}=N(e);_(t.concat(r)),i&&D({newItems:e,currentItems:t}).then(_),s.current.loadItemsDimensionsIfNeeded(h.current,m)},d=async e=>y(e),y=async e=>n.slice(e,e+i),g=(e,t)=>{const r=h.current;p(e,r.slice(0,t||r.length))},_=e=>{const t=e.filter(z);m(t||h.current)};return{itemsToRender:u,handleGetMoreItemsRequest:e=>{(e=>{(a||d)(e).then((t=>{g(t,e)}))})(e)},addExternalItems:e=>{g(C(e,t))}}},U=e=>t=>{const{disableItemProcessors:o,itemsSrc:s,isExternalPagination:n,totalItemsCount:l,items:u,addedItems:c,...h}=t,{itemsToRender:m,handleGetMoreItemsRequest:p,addExternalItems:d}=F(o?[]:u,s,void 0,void 0,n);(0,r.useEffect)((()=>{c&&(null==c?void 0:c.length)>0&&d(c)}),[c]);const y=n?t.eventsListener:a().NEED_MORE_ITEMS((e=>{p(e)})).done(t.eventsListener),g={...h,items:o?u:m,totalItemsCount:n?l||1/0:u.length,eventsListener:y};return i().createElement(e,g)};var W=n(8138),V=n(26219),j=n(1528),Y=n(24641);var $=(e,t)=>{let r=Object.assign({},e);return r[Y.Z.layoutParams.info.height]=function(e,t){if(!function(e,t){return(0,j.hd)(e[Y.Z.layoutParams.info.placement])&&t}(e,t))return 0;return e[Y.Z.layoutParams.info.height]}(r,t),r.externalInfoHeight=function(e,t){let r=t;t>0&&(0,j.hd)(e[Y.Z.layoutParams.info.placement])&&e[Y.Z.layoutParams.info.layout]===p.Z[Y.Z.layoutParams.info.layout].SEPARATED_BACKGROUND&&(r+=e[Y.Z.layoutParams.info.spacing],r+=2*e[Y.Z.layoutParams.info.border.width]);return r}(r,r[Y.Z.layoutParams.info.height]),r.externalInfoWidth=function(e,t){if(!function(e,t){const r=e[Y.Z.layoutParams.structure.scrollDirection]===p.Z[Y.Z.layoutParams.structure.scrollDirection].VERTICAL&&e[Y.Z.layoutParams.structure.layoutOrientation]===p.Z[Y.Z.layoutParams.structure.layoutOrientation].VERTICAL&&1===e[Y.Z.layoutParams.groups.groupSize];return r&&(0,j.Xq)(e[Y.Z.layoutParams.info.placement])&&t}(e,t))return 0;let r=0;r=e[Y.Z.layoutParams.info.sizeUnits]===p.Z[Y.Z.layoutParams.info.sizeUnits].PERCENT?Math.min(100,Math.max(0,e[Y.Z.layoutParams.info.width]))/100:e[Y.Z.layoutParams.info.width];return r}(r,t),r};const K="OPTIONS",X=e=>e.replace(/_/g," ").split(" ").map((e=>e[0].toUpperCase()+e.substr(1).toLowerCase())).join(" "),q=e=>Object.entries(p.Z[e]).map((([e,t])=>({value:t,title:X(e)})));var J={title:"Slide Animation",isRelevant:e=>e[Y.Z.layoutParams.structure.scrollDirection]===p.Z[Y.Z.layoutParams.structure.scrollDirection].HORIZONTAL&&1===e[Y.Z.layoutParams.groups.groupSize]&&e[Y.Z.layoutParams.crop.enable]&&JSON.stringify(e[Y.Z.layoutParams.crop.ratios])===JSON.stringify(["100%/100%"]),isRelevantDescription:'Set a Horizontal gallery ("Scroll Direction" as "Horizontal"), set "Max Group Size" to "1" and set "Crop Images" to true.',type:K,default:p.Z[Y.Z.behaviourParams.gallery.horizontal.slideAnimation].SCROLL,get options(){return q(Y.Z.behaviourParams.gallery.horizontal.slideAnimation)},description:"Choose the slide animation effect to be used when navigating between items in a slideshow"},Q={title:"Scroll Direction",isRelevant:()=>!0,isRelevantDescription:"Always relevant.",type:K,default:p.Z[Y.Z.layoutParams.structure.scrollDirection].VERTICAL,get options(){return q(Y.Z.layoutParams.structure.scrollDirection)},description:"Toggle between two types of galleries. Vertical and Horizontal. Notice that many options are available only for a specific scroll direction."},ee=e=>Q.isRelevant(e)&&e[Y.Z.layoutParams.structure.scrollDirection]===p.Z[Y.Z.layoutParams.structure.scrollDirection].HORIZONTAL,te={title:"Navigation Arrows Position",isRelevant:e=>ee(e)&&e[Y.Z.layoutParams.navigationArrows.enable],isRelevantDescription:'Set a Horizontal gallery ("Scroll Direction" as "Horizontal") and set "Show Navigation Arrows" to "true".',type:K,default:p.Z.layoutParams_navigationArrows_position.ON_GALLERY,get options(){return q("layoutParams_navigationArrows_position")},description:"Set the position of the navigation arrows in sliders. You can choose to position the arrows on the gallery (ON_GALLERY)\n ,outside the gallery (OUTSIDE_GALLERY- in these case the gallery will margins from both sides to make room for the arrows), or on the mouse cursor (still in experimental mode).);\n "};const re=(e,t)=>e[Y.Z.layoutParams.targetItemSize.unit]===p.Z[Y.Z.layoutParams.targetItemSize.unit].PIXEL&&e[Y.Z.layoutParams.targetItemSize.value]>0?e[Y.Z.layoutParams.targetItemSize.value]:e[Y.Z.layoutParams.targetItemSize.unit]===p.Z[Y.Z.layoutParams.targetItemSize.unit].PERCENT&&e[Y.Z.layoutParams.targetItemSize.value]>0?(V.Z&&V.Z.innerWidth||980)*(e[Y.Z.layoutParams.targetItemSize.value]/100):t>0?t:e[Y.Z.layoutParams.targetItemSize.value],ie=e=>{let t=Object.assign({},e);return t=ae(t),t[Y.Z.layoutParams.structure.scrollDirection]!==p.Z[Y.Z.layoutParams.structure.scrollDirection].VERTICAL&&t[Y.Z.layoutParams.structure.layoutOrientation]!==p.Z[Y.Z.layoutParams.structure.layoutOrientation].VERTICAL||(t[Y.Z.layoutParams.groups.allowedGroupTypes]=[p.Z[Y.Z.layoutParams.groups.allowedGroupTypes][1]],t[Y.Z.layoutParams.groups.groupSize]=1,t[Y.Z.layoutParams.groups.density]=0),t},ae=e=>{let t=Object.assign({},e);return t.fixedColumns=0,t[Y.Z.layoutParams.structure.scrollDirection]!==p.Z[Y.Z.layoutParams.structure.scrollDirection].VERTICAL&&t[Y.Z.layoutParams.structure.layoutOrientation]!==p.Z[Y.Z.layoutParams.structure.layoutOrientation].VERTICAL||(t.fixedColumns=e[Y.Z.layoutParams.structure.responsiveMode]===p.Z[Y.Z.layoutParams.structure.responsiveMode].SET_ITEMS_PER_ROW?t[Y.Z.layoutParams.structure.numberOfColumns]:0),t},oe=e=>{let t=Object.assign({},e);return t[Y.Z.layoutParams.crop.method]===p.Z[Y.Z.layoutParams.crop.method].FIT&&(t[Y.Z.stylingParams.itemBorderWidth]=0,t[Y.Z.stylingParams.itemBorderRadius]=0,t[Y.Z.stylingParams.itemEnableShadow]=!1),t};var se=function(e,t){let r=Object.assign({},e);return W.Z.isMobile()&&(r=(e=>{let t=Object.assign({},e);return t[Y.Z.layoutParams.structure.itemSpacing]>0&&(t[Y.Z.layoutParams.structure.itemSpacing]=Math.min(t[Y.Z.layoutParams.structure.itemSpacing],50)),t})(r)),r=(e=>{let t=Object.assign({},e);return p.Z.isLayout("SLIDER")(t)||p.Z.isLayout("COLUMN")(t)||p.Z.isLayout("SLIDESHOW")(t)||(t[Y.Z.layoutParams.structure.layoutOrientation]===p.Z[Y.Z.layoutParams.structure.layoutOrientation].HORIZONTAL||t[Y.Z.layoutParams.groups.groupSize]>1)&&(t[Y.Z.layoutParams.info.placement]=p.Z[Y.Z.layoutParams.info.placement].OVERLAY),t})(r),r=(e=>{let t=Object.assign({},e);return e.EXPERIMENTALallowParallelInfos||(0,j.Sy)(t[Y.Z.layoutParams.info.placement])||t[Y.Z.behaviourParams.item.overlay.hoveringBehaviour]===p.Z[Y.Z.behaviourParams.item.overlay.hoveringBehaviour].NEVER_SHOW||(t[Y.Z.behaviourParams.item.overlay.hoveringBehaviour]=p.Z[Y.Z.behaviourParams.item.overlay.hoveringBehaviour].APPEARS),t})(r),r=(e=>{let t=Object.assign({},e);return t[Y.Z.stylingParams.itemEnableShadow]&&t[Y.Z.layoutParams.structure.scrollDirection]===p.Z[Y.Z.layoutParams.structure.scrollDirection].HORIZONTAL&&(t[Y.Z.stylingParams.itemEnableShadow]=!1),t})(r),r=(e=>{let t=Object.assign({},e);return t[Y.Z.stylingParams.itemEnableShadow]&&t[Y.Z.layoutParams.structure.scrollDirection]===p.Z[Y.Z.layoutParams.structure.scrollDirection].VERTICAL&&(t[Y.Z.layoutParams.structure.gallerySpacing]=Math.max(t[Y.Z.layoutParams.structure.gallerySpacing],(t[Y.Z.stylingParams.itemShadowSize]||0)+(t[Y.Z.stylingParams.itemShadowBlur]||0))),t})(r),r=(e=>{let t=Object.assign({},e);return t[Y.Z.layoutParams.navigationArrows.position]===p.Z[Y.Z.layoutParams.navigationArrows.position].OUTSIDE_GALLERY&&(t[Y.Z.layoutParams.navigationArrows.padding]=0),t})(r),r=(e=>{let t=Object.assign({},e);return t[Y.Z.layoutParams.structure.scrollDirection]===p.Z[Y.Z.layoutParams.structure.scrollDirection].HORIZONTAL&&(t[Y.Z.layoutParams.structure.layoutOrientation]=p.Z[Y.Z.layoutParams.structure.layoutOrientation].HORIZONTAL),t})(r),r=(e=>{let t=Object.assign({},e);return t[Y.Z.layoutParams.structure.scrollDirection]===p.Z[Y.Z.layoutParams.structure.scrollDirection].VERTICAL&&(t[Y.Z.behaviourParams.gallery.horizontal.loop]=!1),t})(r),r=(e=>{let t=Object.assign({},e);return(t[Y.Z.layoutParams.structure.scrollDirection]===p.Z[Y.Z.layoutParams.structure.scrollDirection].VERTICAL||t[Y.Z.layoutParams.groups.groupSize]>1||!t[Y.Z.layoutParams.crop.enable])&&(t[Y.Z.behaviourParams.gallery.horizontal.slideAnimation]=p.Z[Y.Z.behaviourParams.gallery.horizontal.slideAnimation].SCROLL),t})(r),r=(e=>{let t=Object.assign({},e);return t.loadMoreButtonFont&&W.Z.isMobile()&&(t.loadMoreButtonFont.value=t.loadMoreButtonFont.value.replace(/^font\s*:\s*/,""),t.loadMoreButtonFont.value=t.loadMoreButtonFont.value.replace(/;$/,""),t.loadMoreButtonFont.value.indexOf("underline")>-1?(t.loadMoreButtonFont.value=t.loadMoreButtonFont.value.replace("underline",""),t.textDecorationLoadMore="underline"):t.textDecorationLoadMore="none"),t})(r),r=$(r,t),r=(e=>{let t=Object.assign({},e);const r=t[Y.Z.layoutParams.groups.allowedGroupTypes].length>=1&&"1"===t[Y.Z.layoutParams.groups.allowedGroupTypes].join(""),i=t[Y.Z.layoutParams.info.placement].split(",").filter((e=>!(0,j.mR)(e))).join(",");return(0,j.DT)(i)&&r||(t[Y.Z.layoutParams.navigationArrows.verticalAlignment]=p.Z[Y.Z.layoutParams.navigationArrows.verticalAlignment].ITEM_CENTER),t})(r),r=(e=>{let t=Object.assign({},e);return t[Y.Z.behaviourParams.gallery.horizontal.slideshowInfo.enableCounter]?(t[Y.Z.behaviourParams.gallery.horizontal.autoSlide.behaviour]===p.Z[Y.Z.behaviourParams.gallery.horizontal.autoSlide.behaviour].OFF&&(t[Y.Z.behaviourParams.gallery.horizontal.slideshowInfo.enableCounter]=!1),!1===p.Z.isLayout("SLIDESHOW")(e)&&(t[Y.Z.behaviourParams.gallery.horizontal.slideshowInfo.enableCounter]=!1),t):t})(r),r=(e=>{let t=Object.assign({},e);return e[Y.Z.behaviourParams.gallery.horizontal.slideAnimation]!==p.Z[Y.Z.behaviourParams.gallery.horizontal.slideAnimation].FADE&&e[Y.Z.behaviourParams.gallery.horizontal.slideAnimation]!==p.Z[Y.Z.behaviourParams.gallery.horizontal.slideAnimation].DECK||!J.isRelevant(e)||(t[Y.Z.behaviourParams.gallery.horizontal.blockScroll]=!0),t})(r),r=(e=>{let t=Object.assign({},e);return e[Y.Z.layoutParams.navigationArrows.position]===p.Z[Y.Z.layoutParams.navigationArrows.position].MOUSE_CURSOR&&te.isRelevant(e)&&(t[Y.Z.behaviourParams.item.video.enableControls]=!1),t})(r),r=(e=>{let t=Object.assign({},e);return W.Z.isTouch()&&e[Y.Z.layoutParams.navigationArrows.position]===p.Z[Y.Z.layoutParams.navigationArrows.position].MOUSE_CURSOR&&te.isRelevant(e)&&(t[Y.Z.layoutParams.navigationArrows.enable]=!1),t})(r),r=(e=>{let t=Object.assign({},e);return t[Y.Z.layoutParams.crop.cropOnlyFill]&&(t[Y.Z.layoutParams.crop.enable]=t[Y.Z.layoutParams.crop.method]===p.Z[Y.Z.layoutParams.crop.method].FILL),t})(r),r};const ne=e=>{let t=Object.assign({},e);return t[Y.Z.layoutParams.structure.galleryLayout]=p.Z[Y.Z.layoutParams.structure.galleryLayout].ALTERNATE,t[Y.Z.layoutParams.crop.method]=p.Z[Y.Z.layoutParams.crop.method].FILL,t[Y.Z.layoutParams.crop.enable]=!0,t[Y.Z.layoutParams.crop.ratios]=[1],t[Y.Z.layoutParams.info.placement]=p.Z[Y.Z.layoutParams.info.placement].OVERLAY,t[Y.Z.layoutParams.structure.scrollDirection]=p.Z[Y.Z.layoutParams.structure.scrollDirection].VERTICAL,t[Y.Z.layoutParams.structure.responsiveMode]=p.Z[Y.Z.layoutParams.structure.responsiveMode].SET_ITEMS_PER_ROW,t[Y.Z.layoutParams.structure.gallerySpacing]=0,t[Y.Z.layoutParams.structure.layoutOrientation]=p.Z[Y.Z.layoutParams.structure.layoutOrientation].VERTICAL,t[Y.Z.layoutParams.groups.groupSize]=3,t[Y.Z.layoutParams.groups.density]=.48,t[Y.Z.layoutParams.groups.allowedGroupTypes]=[p.Z[Y.Z.layoutParams.groups.allowedGroupTypes][1],p.Z[Y.Z.layoutParams.groups.allowedGroupTypes]["2h"],p.Z[Y.Z.layoutParams.groups.allowedGroupTypes]["2v"],p.Z[Y.Z.layoutParams.groups.allowedGroupTypes]["3t"],p.Z[Y.Z.layoutParams.groups.allowedGroupTypes]["3b"],p.Z[Y.Z.layoutParams.groups.allowedGroupTypes]["3l"],p.Z[Y.Z.layoutParams.groups.allowedGroupTypes]["3r"],p.Z[Y.Z.layoutParams.groups.allowedGroupTypes]["3v"],p.Z[Y.Z.layoutParams.groups.allowedGroupTypes]["3h"]],t[Y.Z.layoutParams.targetItemSize.value]=86,t[Y.Z.layoutParams.targetItemSize.minimum]=50,t[Y.Z.layoutParams.groups.groupByOrientation]=!0,t[Y.Z.layoutParams.groups.repeatingGroupTypes]=[p.Z[Y.Z.layoutParams.groups.allowedGroupTypes][1],p.Z[Y.Z.layoutParams.groups.allowedGroupTypes]["2h"],p.Z[Y.Z.layoutParams.groups.allowedGroupTypes][1],p.Z[Y.Z.layoutParams.groups.allowedGroupTypes]["2h"]],t[Y.Z.layoutParams.crop.enableSmartCrop]=!1,t[Y.Z.layoutParams.structure.scatter.randomScatter]=0,t[Y.Z.layoutParams.structure.scatter.manualScatter]="",t[Y.Z.layoutParams.structure.numberOfColumns]=1,t[Y.Z.layoutParams.groups.numberOfGroupsPerRow]=0,t[Y.Z.layoutParams.structure.groupsOrder]=p.Z[Y.Z.layoutParams.structure.groupsOrder].BY_HEIGHT,t.fixedColumns=1,t},le=(ne({}),e=>{let t=Object.assign({},e);return t[Y.Z.layoutParams.structure.galleryLayout]=p.Z[Y.Z.layoutParams.structure.galleryLayout].BRICKS,t[Y.Z.layoutParams.crop.method]=p.Z[Y.Z.layoutParams.crop.method].FILL,t[Y.Z.layoutParams.crop.enable]=!0,t[Y.Z.layoutParams.info.placement]=p.Z[Y.Z.layoutParams.info.placement].OVERLAY,t[Y.Z.layoutParams.structure.scrollDirection]=p.Z[Y.Z.layoutParams.structure.scrollDirection].VERTICAL,t[Y.Z.layoutParams.structure.gallerySpacing]=0,t[Y.Z.layoutParams.structure.layoutOrientation]=p.Z[Y.Z.layoutParams.structure.layoutOrientation].VERTICAL,t[Y.Z.layoutParams.groups.groupSize]=3,t[Y.Z.layoutParams.groups.density]=.8,t[Y.Z.layoutParams.groups.allowedGroupTypes]=[p.Z[Y.Z.layoutParams.groups.allowedGroupTypes][1],p.Z[Y.Z.layoutParams.groups.allowedGroupTypes]["2h"],p.Z[Y.Z.layoutParams.groups.allowedGroupTypes]["2v"],p.Z[Y.Z.layoutParams.groups.allowedGroupTypes]["3t"],p.Z[Y.Z.layoutParams.groups.allowedGroupTypes]["3b"],p.Z[Y.Z.layoutParams.groups.allowedGroupTypes]["3l"],p.Z[Y.Z.layoutParams.groups.allowedGroupTypes]["3r"],p.Z[Y.Z.layoutParams.groups.allowedGroupTypes]["3v"],p.Z[Y.Z.layoutParams.groups.allowedGroupTypes]["3h"]],t[Y.Z.behaviourParams.gallery.horizontal.loop]=!1,t[Y.Z.layoutParams.structure.responsiveMode]=p.Z[Y.Z.layoutParams.structure.responsiveMode].SET_ITEMS_PER_ROW,t[Y.Z.layoutParams.targetItemSize.value]=400,t[Y.Z.layoutParams.targetItemSize.minimum]=50,t[Y.Z.layoutParams.groups.groupByOrientation]=!0,t[Y.Z.layoutParams.groups.repeatingGroupTypes]=[p.Z[Y.Z.layoutParams.groups.allowedGroupTypes]["2h"]],t[Y.Z.layoutParams.crop.enableSmartCrop]=!1,t[Y.Z.layoutParams.structure.scatter.randomScatter]=0,t[Y.Z.layoutParams.structure.scatter.manualScatter]="",t[Y.Z.layoutParams.structure.numberOfColumns]=1,t[Y.Z.layoutParams.groups.numberOfGroupsPerRow]=0,t[Y.Z.layoutParams.structure.groupsOrder]=p.Z[Y.Z.layoutParams.structure.groupsOrder].BY_HEIGHT,t[Y.Z.layoutParams.crop.ratios]=[.707,1.414,1.414,.707],t.fixedColumns=1,t}),ue=(le({}),e=>{let t=Object.assign({},e);return t[Y.Z.layoutParams.structure.galleryLayout]=p.Z[Y.Z.layoutParams.structure.galleryLayout].COLLAGE,t[Y.Z.layoutParams.crop.enable]=!1,p.Z[Y.Z.layoutParams.info.placement].OVERLAY,t[Y.Z.layoutParams.groups.groupSize]=3,t[Y.Z.layoutParams.groups.allowedGroupTypes]=[p.Z[Y.Z.layoutParams.groups.allowedGroupTypes][1],p.Z[Y.Z.layoutParams.groups.allowedGroupTypes]["2h"],p.Z[Y.Z.layoutParams.groups.allowedGroupTypes]["2v"],p.Z[Y.Z.layoutParams.groups.allowedGroupTypes]["3t"],p.Z[Y.Z.layoutParams.groups.allowedGroupTypes]["3b"],p.Z[Y.Z.layoutParams.groups.allowedGroupTypes]["3l"],p.Z[Y.Z.layoutParams.groups.allowedGroupTypes]["3r"]],t[Y.Z.behaviourParams.gallery.horizontal.loop]=!1,t[Y.Z.layoutParams.structure.numberOfGridRows]=1,t[Y.Z.layoutParams.structure.responsiveMode]=p.Z[Y.Z.layoutParams.structure.responsiveMode].FIT_TO_SCREEN,t[Y.Z.layoutParams.structure.numberOfColumns]=0,t[Y.Z.layoutParams.crop.cropOnlyFill]=!1,t[Y.Z.behaviourParams.gallery.horizontal.slideAnimation]=p.Z[Y.Z.behaviourParams.gallery.horizontal.slideAnimation].SCROLL,t.fixedColumns=0,t}),ce=(ue({}),e=>{let t=Object.assign({},e);return t[Y.Z.layoutParams.structure.galleryLayout]=p.Z[Y.Z.layoutParams.structure.galleryLayout].FULLSIZE,t[Y.Z.layoutParams.crop.enable]=!0,t[Y.Z.layoutParams.crop.ratios]=["100%/100%"],t[Y.Z.layoutParams.crop.method]=p.Z[Y.Z.layoutParams.crop.method].FILL,t[Y.Z.layoutParams.info.placement]=p.Z[Y.Z.layoutParams.info.placement].OVERLAY,t[Y.Z.layoutParams.structure.scrollDirection]=p.Z[Y.Z.layoutParams.structure.scrollDirection].HORIZONTAL,t[Y.Z.layoutParams.structure.gallerySpacing]=0,t[Y.Z.layoutParams.structure.layoutOrientation]=p.Z[Y.Z.layoutParams.structure.layoutOrientation].HORIZONTAL,t[Y.Z.layoutParams.groups.groupSize]=1,t[Y.Z.layoutParams.groups.allowedGroupTypes]=[p.Z[Y.Z.layoutParams.groups.allowedGroupTypes][1]],t[Y.Z.layoutParams.structure.numberOfGridRows]=1,t[Y.Z.layoutParams.crop.enableSmartCrop]=!1,t[Y.Z.behaviourParams.gallery.horizontal.enableScrollSnap]=!0,t[Y.Z.layoutParams.crop.cropOnlyFill]=!0,t[Y.Z.layoutParams.structure.scatter.randomScatter]=0,t[Y.Z.layoutParams.structure.scatter.manualScatter]="",t[Y.Z.layoutParams.structure.itemSpacing]=0,t}),he=(ce({}),e=>{let t=Object.assign({},e);return t[Y.Z.layoutParams.structure.galleryLayout]=p.Z[Y.Z.layoutParams.structure.galleryLayout].COLUMN,t[Y.Z.layoutParams.crop.method]=p.Z[Y.Z.layoutParams.crop.method].FILL,t[Y.Z.layoutParams.crop.enable]=!0,t[Y.Z.layoutParams.crop.ratios]=[.35],t[Y.Z.layoutParams.structure.scrollDirection]=p.Z[Y.Z.layoutParams.structure.scrollDirection].HORIZONTAL,t[Y.Z.layoutParams.structure.layoutOrientation]=p.Z[Y.Z.layoutParams.structure.layoutOrientation].HORIZONTAL,t[Y.Z.layoutParams.groups.groupSize]=1,t[Y.Z.layoutParams.groups.allowedGroupTypes]=[p.Z[Y.Z.layoutParams.groups.allowedGroupTypes][1]],t[Y.Z.layoutParams.structure.numberOfGridRows]=1,t[Y.Z.layoutParams.crop.enableSmartCrop]=!1,t[Y.Z.layoutParams.structure.numberOfColumns]=0,t[Y.Z.layoutParams.crop.cropOnlyFill]=!1,t[Y.Z.behaviourParams.gallery.horizontal.slideAnimation]=p.Z[Y.Z.behaviourParams.gallery.horizontal.slideAnimation].SCROLL,t.fixedColumns=0,t}),me=(he({}),e=>{let t=Object.assign({},e);return t[Y.Z.layoutParams.structure.galleryLayout]=p.Z[Y.Z.layoutParams.structure.galleryLayout].GRID,t[Y.Z.layoutParams.crop.enable]=!0,t[Y.Z.layoutParams.structure.layoutOrientation]=p.Z[Y.Z.layoutParams.structure.layoutOrientation].VERTICAL,t[Y.Z.layoutParams.groups.groupSize]=1,t[Y.Z.layoutParams.groups.allowedGroupTypes]=[p.Z[Y.Z.layoutParams.groups.allowedGroupTypes][1]],t[Y.Z.behaviourParams.gallery.horizontal.loop]=!1,t[Y.Z.layoutParams.crop.enableSmartCrop]=!1,t[Y.Z.layoutParams.crop.cropOnlyFill]=!1,t[Y.Z.layoutParams.targetItemSize.minimum]=50,t[Y.Z.behaviourParams.gallery.horizontal.slideAnimation]=p.Z[Y.Z.behaviourParams.gallery.horizontal.slideAnimation].SCROLL,t[Y.Z.layoutParams.groups.density]=0,t}),pe=(me({}),e=>{let t=Object.assign({},e);return t=me(t),t.targetItemSize=re(t,Math.round(8.5*t[Y.Z.layoutParams.targetItemSize.value]+150)),t=ie(t),t=(e=>{let t=Object.assign({},e);if(!W.Z.isUndefined(e[Y.Z.layoutParams.structure.numberOfGridRows])&&e[Y.Z.layoutParams.structure.scrollDirection]===p.Z[Y.Z.layoutParams.structure.scrollDirection].HORIZONTAL)switch(t[Y.Z.layoutParams.structure.numberOfColumns]=0,e[Y.Z.layoutParams.structure.numberOfGridRows]){case 1:default:t[Y.Z.layoutParams.groups.allowedGroupTypes]=[p.Z[Y.Z.layoutParams.groups.allowedGroupTypes][1]],t[Y.Z.layoutParams.groups.groupSize]=1,t[Y.Z.layoutParams.groups.density]=0;break;case 2:t[Y.Z.layoutParams.groups.allowedGroupTypes]=[p.Z[Y.Z.layoutParams.groups.allowedGroupTypes]["2v"]],t[Y.Z.layoutParams.groups.groupSize]=2,t[Y.Z.layoutParams.groups.density]=1;break;case 3:t[Y.Z.layoutParams.groups.allowedGroupTypes]=[p.Z[Y.Z.layoutParams.groups.allowedGroupTypes]["3v"]],t[Y.Z.layoutParams.groups.groupSize]=3,t[Y.Z.layoutParams.groups.density]=1}return t})(t),t=oe(t),t}),de=e=>{let t=Object.assign({},e);return t[Y.Z.layoutParams.structure.galleryLayout]=p.Z[Y.Z.layoutParams.structure.galleryLayout].MASONRY,t[Y.Z.layoutParams.crop.enable]=!1,t[Y.Z.layoutParams.structure.scrollDirection]=p.Z[Y.Z.layoutParams.structure.scrollDirection].VERTICAL,t[Y.Z.layoutParams.groups.groupSize]=1,t[Y.Z.layoutParams.groups.allowedGroupTypes]=[p.Z[Y.Z.layoutParams.groups.allowedGroupTypes][1]],t[Y.Z.behaviourParams.gallery.horizontal.loop]=!1,t[Y.Z.layoutParams.crop.cropOnlyFill]=!1,t},ye=(de({}),e=>{let t=Object.assign({},e);t=de(t);const r=t[Y.Z.layoutParams.structure.layoutOrientation]===p.Z[Y.Z.layoutParams.structure.layoutOrientation].VERTICAL,i=e[Y.Z.layoutParams.targetItemSize.value];return t.targetItemSize=re(t,r?8*i+200:5*i+200),t=ie(t),t=(e=>{let t=Object.assign({},e);const r=t[Y.Z.layoutParams.structure.layoutOrientation]===p.Z[Y.Z.layoutParams.structure.layoutOrientation].VERTICAL;return t[Y.Z.layoutParams.structure.responsiveMode]=r?e[Y.Z.layoutParams.structure.responsiveMode]:p.Z[Y.Z.layoutParams.structure.responsiveMode].FIT_TO_SCREEN,t})(t),t}),ge=e=>{let t=Object.assign({},e);return t[Y.Z.layoutParams.structure.galleryLayout]=p.Z[Y.Z.layoutParams.structure.galleryLayout].MIX,t[Y.Z.layoutParams.crop.method]=p.Z[Y.Z.layoutParams.crop.method].FILL,t[Y.Z.layoutParams.crop.enable]=!0,t[Y.Z.layoutParams.crop.ratios]=[1],t[Y.Z.layoutParams.info.placement]=p.Z[Y.Z.layoutParams.info.placement].OVERLAY,t[Y.Z.layoutParams.structure.scrollDirection]=p.Z[Y.Z.layoutParams.structure.scrollDirection].VERTICAL,t[Y.Z.layoutParams.structure.gallerySpacing]=0,t[Y.Z.layoutParams.structure.layoutOrientation]=p.Z[Y.Z.layoutParams.structure.layoutOrientation].VERTICAL,t[Y.Z.layoutParams.groups.groupSize]=3,t[Y.Z.layoutParams.groups.allowedGroupTypes]=[p.Z[Y.Z.layoutParams.groups.allowedGroupTypes][1],p.Z[Y.Z.layoutParams.groups.allowedGroupTypes]["2h"],p.Z[Y.Z.layoutParams.groups.allowedGroupTypes]["2v"],p.Z[Y.Z.layoutParams.groups.allowedGroupTypes]["3t"],p.Z[Y.Z.layoutParams.groups.allowedGroupTypes]["3b"],p.Z[Y.Z.layoutParams.groups.allowedGroupTypes]["3l"],p.Z[Y.Z.layoutParams.groups.allowedGroupTypes]["3r"],p.Z[Y.Z.layoutParams.groups.allowedGroupTypes]["3v"],p.Z[Y.Z.layoutParams.groups.allowedGroupTypes]["3h"]],t[Y.Z.layoutParams.groups.density]=.48,t[Y.Z.layoutParams.structure.responsiveMode]=p.Z[Y.Z.layoutParams.structure.responsiveMode].SET_ITEMS_PER_ROW,t[Y.Z.layoutParams.targetItemSize.value]=86,t[Y.Z.layoutParams.targetItemSize.minimum]=50,t[Y.Z.layoutParams.groups.groupByOrientation]=!0,t[Y.Z.layoutParams.groups.repeatingGroupTypes]=[p.Z[Y.Z.layoutParams.groups.allowedGroupTypes][1],p.Z[Y.Z.layoutParams.groups.allowedGroupTypes]["3l"],p.Z[Y.Z.layoutParams.groups.allowedGroupTypes][1],p.Z[Y.Z.layoutParams.groups.allowedGroupTypes]["3r"]],t[Y.Z.layoutParams.crop.enableSmartCrop]=!1,t[Y.Z.layoutParams.structure.scatter.randomScatter]=0,t[Y.Z.layoutParams.structure.scatter.manualScatter]="",t[Y.Z.layoutParams.structure.numberOfColumns]=1,t[Y.Z.layoutParams.groups.numberOfGroupsPerRow]=0,t[Y.Z.layoutParams.structure.groupsOrder]=p.Z[Y.Z.layoutParams.structure.groupsOrder].BY_HEIGHT,t.fixedColumns=1,t},_e=(ge({}),e=>{let t=Object.assign({},e);return t[Y.Z.layoutParams.structure.galleryLayout]=p.Z[Y.Z.layoutParams.structure.galleryLayout].PANORAMA,t[Y.Z.layoutParams.crop.enable]=!1,t[Y.Z.layoutParams.structure.scrollDirection]=p.Z[Y.Z.layoutParams.structure.scrollDirection].VERTICAL,t[Y.Z.layoutParams.structure.layoutOrientation]=p.Z[Y.Z.layoutParams.structure.layoutOrientation].VERTICAL,t[Y.Z.layoutParams.groups.groupSize]=1,t[Y.Z.layoutParams.groups.allowedGroupTypes]=[p.Z[Y.Z.layoutParams.groups.allowedGroupTypes][1]],t[Y.Z.layoutParams.structure.responsiveMode]=p.Z[Y.Z.layoutParams.structure.responsiveMode].SET_ITEMS_PER_ROW,t[Y.Z.layoutParams.structure.numberOfColumns]=1,t[Y.Z.layoutParams.crop.cropOnlyFill]=!1,t[Y.Z.behaviourParams.gallery.horizontal.loop]=!1,t.fixedColumns=1,t}),ve=(_e({}),e=>{let t=Object.assign({},e);return t[Y.Z.layoutParams.structure.galleryLayout]=p.Z[Y.Z.layoutParams.structure.galleryLayout].SLIDER,t[Y.Z.layoutParams.crop.enable]=!0,t[Y.Z.layoutParams.structure.scrollDirection]=p.Z[Y.Z.layoutParams.structure.scrollDirection].HORIZONTAL,t[Y.Z.layoutParams.structure.layoutOrientation]=p.Z[Y.Z.layoutParams.structure.layoutOrientation].HORIZONTAL,t[Y.Z.layoutParams.groups.groupSize]=1,t[Y.Z.layoutParams.groups.allowedGroupTypes]=[p.Z[Y.Z.layoutParams.groups.allowedGroupTypes][1]],t[Y.Z.layoutParams.structure.numberOfGridRows]=1,t[Y.Z.layoutParams.crop.enableSmartCrop]=!1,t[Y.Z.behaviourParams.gallery.horizontal.enableScrollSnap]=!0,t[Y.Z.layoutParams.crop.cropOnlyFill]=!0,t[Y.Z.behaviourParams.gallery.horizontal.slideAnimation]=p.Z[Y.Z.behaviourParams.gallery.horizontal.slideAnimation].SCROLL,t});ve({});var Pe=function(e){e[Y.Z.behaviourParams.item.content.placementAnimation]=p.Z[Y.Z.behaviourParams.item.content.placementAnimation].NO_EFFECT,e[Y.Z.behaviourParams.item.overlay.hoverAnimation]=p.Z[Y.Z.behaviourParams.item.overlay.hoverAnimation].NO_EFFECT,e[Y.Z.behaviourParams.item.content.hoverAnimation]=p.Z[Y.Z.behaviourParams.item.content.hoverAnimation].NO_EFFECT};const fe=e=>{let t=Object.assign({},e);return t[Y.Z.layoutParams.structure.galleryLayout]=p.Z[Y.Z.layoutParams.structure.galleryLayout].SLIDESHOW,t[Y.Z.layoutParams.crop.ratios]=["100%/100%"],t[Y.Z.layoutParams.crop.enable]=!0,t[Y.Z.layoutParams.structure.scrollDirection]=p.Z[Y.Z.layoutParams.structure.scrollDirection].HORIZONTAL,t[Y.Z.layoutParams.structure.gallerySpacing]=0,t[Y.Z.layoutParams.structure.layoutOrientation]=p.Z[Y.Z.layoutParams.structure.layoutOrientation].HORIZONTAL,t[Y.Z.layoutParams.groups.groupSize]=1,t[Y.Z.layoutParams.info.placement]=p.Z[Y.Z.layoutParams.info.placement].BELOW,t[Y.Z.layoutParams.groups.allowedGroupTypes]=[p.Z[Y.Z.layoutParams.groups.allowedGroupTypes][1]],t[Y.Z.stylingParams.itemBorderWidth]=0,t[Y.Z.stylingParams.itemBorderRadius]=0,t[Y.Z.stylingParams.itemBorderColor]=void 0,t[Y.Z.layoutParams.structure.numberOfGridRows]=1,Pe(t),t[Y.Z.layoutParams.crop.enableSmartCrop]=!1,t[Y.Z.layoutParams.targetItemSize.value]=550,t[Y.Z.layoutParams.structure.numberOfColumns]=1,t[Y.Z.behaviourParams.gallery.horizontal.enableScrollSnap]=!0,t[Y.Z.layoutParams.crop.cropOnlyFill]=!1,t[Y.Z.layoutParams.structure.scatter.randomScatter]=0,t[Y.Z.layoutParams.structure.scatter.manualScatter]="",t[Y.Z.layoutParams.structure.itemSpacing]=0,t.fixedColumns=1,t},be=(fe({}),e=>{let t=Object.assign({},e);return t[Y.Z.layoutParams.structure.galleryLayout]=p.Z[Y.Z.layoutParams.structure.galleryLayout].THUMBNAIL,t[Y.Z.layoutParams.crop.ratios]=["100%/100%"],t[Y.Z.layoutParams.crop.enable]=!0,t[Y.Z.layoutParams.info.placement]=p.Z[Y.Z.layoutParams.info.placement].OVERLAY,t[Y.Z.layoutParams.structure.scrollDirection]=p.Z[Y.Z.layoutParams.structure.scrollDirection].HORIZONTAL,t[Y.Z.layoutParams.structure.gallerySpacing]=0,t[Y.Z.layoutParams.structure.layoutOrientation]=p.Z[Y.Z.layoutParams.structure.layoutOrientation].HORIZONTAL,t[Y.Z.layoutParams.groups.groupSize]=1,t[Y.Z.layoutParams.groups.allowedGroupTypes]=[p.Z[Y.Z.layoutParams.groups.allowedGroupTypes][1]],t[Y.Z.layoutParams.structure.numberOfGridRows]=1,t[Y.Z.layoutParams.crop.enableSmartCrop]=!1,t[Y.Z.layoutParams.thumbnails.enable]=!0,t[Y.Z.behaviourParams.gallery.horizontal.enableScrollSnap]=!0,t[Y.Z.layoutParams.crop.cropOnlyFill]=!1,t[Y.Z.layoutParams.structure.scatter.randomScatter]=0,t[Y.Z.layoutParams.structure.scatter.manualScatter]="",t[Y.Z.layoutParams.structure.itemSpacing]=0,t[Y.Z.layoutParams.targetItemSize.value]=550,t}),Ie=(be({}),e=>{let t=Object.assign({},e);return t[Y.Z.layoutParams.structure.galleryLayout]=p.Z[Y.Z.layoutParams.structure.galleryLayout].EMPTY,t});Ie({});function Se(e,t,r,i=!0){let a=i?Object.assign({},e):e,o=t.split("_"),s=o.pop(),n=a;return o.forEach((e=>{"object"!=typeof n[e]&&(n[e]={}),n=n[e]})),n[s]=r,a}function Ee(e){var t={};for(var r in e)if(e.hasOwnProperty(r))if("object"==typeof e[r]&&!(e[r]instanceof Array)&&null!==e[r]&&Object.keys(e[r]).length>0){var i=Ee(e[r]);for(var a in i)i.hasOwnProperty(a)&&(t[r+"_"+a]=i[a])}else t[r]=e[r];return t}function Oe(e){return Object.entries(e).reduce(((e,[t,r])=>Se(e,t,r,false)),{})}const Te=e=>{try{const t=e.jsonStyleParams?JSON.parse(e.jsonStyleParams):{};return function(...e){return Oe(Object.assign({},...e.map(Ee)))}(e,Oe(t))}catch(e){return{}}},Ze=e=>{const t=p.Z[Y.Z.layoutParams.structure.galleryLayout];switch(e[Y.Z.layoutParams.structure.galleryLayout]){case t.MASONRY:return ye(e);case t.GRID:return pe(e);case t.THUMBNAIL:return(e=>{let t=Object.assign({},e);return t=be(t),t.targetItemSize=re(t),t=oe(t),t})(e);case t.SLIDER:return(e=>{let t=Object.assign({},e);return t=ve(t),t.targetItemSize=re(t),t=oe(t),t})(e);case t.SLIDESHOW:return(e=>{let t=Object.assign({},e);return t=fe(t),t.targetItemSize=re(t),t=oe(t),t})(e);case t.PANORAMA:return(e=>{let t=Object.assign({},e);return t=_e(t),t.targetItemSize=re(t),t})(e);case t.COLUMN:return(e=>{let t=Object.assign({},e);return t=he(t),t.targetItemSize=re(t),t})(e);case t.MAGIC:return console.error("A layout generated by the magicLayoutSeed is no longer supported as of Pro Gallery v5"),e;case t.FULLSIZE:return(e=>{let t=Object.assign({},e);return t=ce(t),t.targetItemSize=re(t),t})(e);case t.BRICKS:return(e=>{let t=Object.assign({},e);return t=le(t),t.targetItemSize=re(t),t})(e);case t.MIX:return(e=>{let t=Object.assign({},e);return t=ge(t),t.targetItemSize=re(t),t})(e);case t.ALTERNATE:return(e=>{let t=Object.assign({},e);return t=ne(t),t.targetItemSize=re(t),t})(e);case t.EMPTY:return(e=>{let t=Object.assign({},e);return t=Ie(t),t=ae(t),t.targetItemSize=re(t,Math.round(9*t[Y.Z.layoutParams.targetItemSize.value]+100)),t})(e);case t.JSON_FIXED:return Te(e);case t.COLLAGE:default:return(e=>{let t=Object.assign({},e);t=ue(t);const r=e[Y.Z.layoutParams.targetItemSize.value];return t.targetItemSize=re(t,Math.round(5*r+500)),t})(e)}};const Le=e=>t=>{const{flattenOptions:r,flattenFullscreenOverrides:a}=t,{options:s,fullscreenOptions:n}=function(e,t){const r=se(Ze(e),!0);if(t)return{options:r,fullscreenOptions:{...e,...t}};return{options:r,fullscreenOptions:void 0}}(r,a);return i().createElement(i().Fragment,null,i().createElement(e,(0,o.Z)({},t,{options:s,fullscreenOptions:n,flattenOptions:r})))};const we=function(e){void 0===e&&(e="");let t=0;for(let r=0;r`${we(e.mediaUrl)}_${e.width||e.metaData.width}_${e.height||e.metaData.height}`)).join("|"),a=function(e){const t=Ee(e);return`(ele) => {\n const mainFunc = (galleryEle) => {\n const computedStyle = window.getComputedStyle(galleryEle);\n const computedStyles = {};\n // search css variables to query\n const cssVariables = [];\n const stylesheets = document.styleSheets;\n for (let i = 0; i < stylesheets.length; i++) {\n try {\n const rules = stylesheets[i].rules || stylesheets[i].cssRules;\n for (let j = 0; j < rules.length; j++) {\n const rule = rules[j];\n const style = rule.style;\n if (style) {\n for (let k = 0; k < style.length; k++) {\n const prop = style[k];\n if (prop.startsWith('--')) {\n if (prop.includes('ProGallery-')) {\n cssVariables.push(prop);\n }\n }\n }\n }\n }\n } catch (e) {\n }\n }\n const cssVariablesMap = cssVariables.map((item) => {\n return {\n name: item,\n value: computedStyle.getPropertyValue(item),\n }\n }).filter((item) => item.value);\n // get computed styles\n for (let i = 0; i < cssVariablesMap.length; i++) {\n computedStyles[cssVariablesMap[i].name] = cssVariablesMap[i].value;\n }\n const options = Object.entries(computedStyles).reduce((res, [key, value]) => {\n const keyNameStart = key.indexOf('ProGallery-') + 'ProGallery-'.length;\n const keyName = key.substring(keyNameStart);\n res[keyName] = JSON.parse(value);\n return res;\n }, {});\n const optionsStr = Object.entries({...${JSON.stringify(t)},...options})\n .map(([key, value]) => ([key, JSON.stringify(value)]))\n .filter(([key, value]) => key.includes('layoutParams_'))\n .map((keyval) => keyval.join(":")).join('|');\n return optionsStr;\n };\n return mainFunc(ele);\n }`}(r);return{hrefStr:`/_serverless/pro-gallery-native-layout-fixer/layoutCssNative?id=${e.id}&items=${i}&container=`,getOptions:a}}function Re(e){const{hrefStr:t,getOptions:r}=Ae(e);return i=`\n var nativeComp = document.getElementById("${e.id}"), nativeRect = nativeComp.getBoundingClientRect();\n var pgMeasures = {top: nativeRect.top, width: nativeRect.width, height: Number(getComputedStyle(nativeComp).getPropertyValue("height").replace("px", ""))};\n var options = (${r})(ele);\n `,`\n var ele = document.getElementById('${"pro-gallery-"+e.id}');\n ${i}\n var isVertical = options.includes('layoutParams_structure_scrollDirection:"VERTICAL"');\n var layoutFixerUrl = '${t}' + pgMeasures.top + '_' + pgMeasures.width + '_' + pgMeasures.height + '_' + window.innerHeight + '&options=' + options;\n document.getElementById('${"layout-fixer-style-"+e.id}').setAttribute('href', encodeURI(layoutFixerUrl));\n});\n\n `;var i}const Ce=e=>{try{var t;const r="undefined"!=typeof window?((null==(t=window.document.getElementById("layout-fixer-style-"+e.id))?void 0:t.href)||"").replace(/^.*\/\/[^/]+/,""):"";return i().createElement("div",{id:"layout-fixer-"+e.id,key:"layout-fixer-"+e.id,style:{display:"none"}},i().createElement("link",{rel:"stylesheet",id:"layout-fixer-style-"+e.id,href:r}),i().createElement("script",{dangerouslySetInnerHTML:{__html:`try {\n window.requestAnimationFrame(function() {\n ${Re(e)}\n } catch (e) {\n console.warn('Cannot set layoutFixer css', e);\n }`}}))}catch(e){return i().createElement("div",{id:"layoutFixerErrors",style:{display:"none"}},e.toString())}},Ne=e=>t=>i().createElement(e,t,t.children,!t.disableLayoutFixer&&(t.isPrerenderMode||!t.firstInteractionRecorded)&&i().createElement(Ce,{isPrerenderMode:t.isPrerenderMode,items:t.items,id:t.id,options:t.flattenOptions}));var xe=n(98047),De=n(60484),Me=n.n(De),Ge=n(17229);var He=new class{constructor(){this.lastHeight=void 0,this.lastOffsetTop=void 0,this.lastInfiniteScroll=void 0,this.lastIsHorizontal=void 0,this.setWixHeight=this.setWixHeight.bind(this),this.protectGalleryWidth=this.protectGalleryWidth.bind(this),this.protectGalleryHeight=this.protectGalleryHeight.bind(this)}getViewportScaleRatio(e){const t=void 0!==Ge.Z&&Ge.Z.isGallery,r=xe.y.shouldDebug("ignoreScaleRatio")||xe.y.isiOS()&&t;return e||!xe.y.isMobile()||xe.y.isMobileViewer()||!xe.y.isSite()||r?1:320/xe.y.getScreenWidth()}protectGalleryWidth(e){let t;return xe.y.isSite()&&(t=Number(xe.y.parseGetParam("width"))),t=xe.y.browserIs("chromeIos")&&t||document.body.clientWidth,xe.y.isMobile()&&(t=Math.floor(t/this.getViewportScaleRatio())),Math.min(Math.floor(e),t)}protectGalleryHeight(e,t){void 0===t&&(t=0);return Math.floor(e-t)}setWixHeight(e){let{height:t,offsetTop:r=0,styleParams:i,container:a,numOfItems:o,isInfinite:s,isFixedHorizontlaGalleryRatio:n,updatedHeight:l,setHeightImp:u,viewMode:c,clearHeight:h}=e;c&&xe.y.updateViewMode(c);const m=()=>{const e=()=>.6*Ge.Z.screen.height,t=()=>(9*a.galleryWidth/16+((i[Y.Z.layoutParams.thumbnails.enable]&&[p.Z.layoutParams_thumbnails_alignment.TOP,p.Z.layoutParams_thumbnails_alignment.BOTTOM].indexOf(i[Y.Z.layoutParams.thumbnails.alignment])>=0?i[Y.Z.layoutParams.thumbnails.size]||120:0)+(i.externalInfoHeight>0?i.externalInfoHeight:0)))*Number(p.Z.isLayout("SLIDER")(i)?.85:1)+r;return 0===o?390:i[Y.Z.layoutParams.structure.scrollDirection]===p.Z[Y.Z.layoutParams.structure.scrollDirection].HORIZONTAL?Math.min(e(),t()):!s&&!n&&e()},d=(e,t)=>{let r=Math.round(e*this.getViewportScaleRatio(t)),a=!1;(s||n)&&(a=!0),l&&(a=!0,r=Math.min(l,e));const o=m();return(xe.y.isEditor()||xe.y.isInAlbumsBuilder())&&o&&(i[Y.Z.layoutParams.structure.scrollDirection]===p.Z[Y.Z.layoutParams.structure.scrollDirection].HORIZONTAL&&!n||i[Y.Z.layoutParams.structure.scrollDirection]===p.Z[Y.Z.layoutParams.structure.scrollDirection].VERTICAL&&!s)&&(a=!1,(r>o||xe.y.isInAlbumsBuilder())&&(r=o,a=!0)),a&&r},y=()=>{this.lastOffsetTop=r,this.lastInfiniteScroll=!i[Y.Z.behaviourParams.gallery.vertical.loadMore.enable],this.lastIsHorizontal=i[Y.Z.layoutParams.structure.scrollDirection]===p.Z[Y.Z.layoutParams.structure.scrollDirection].HORIZONTAL},g=(e,t,r)=>{e&&t&&r&&("function"==typeof h?(this.lastHeight=0,h()):console.warn("trying to clearHeight() for responsive gallery, clearHeight is not a function"))};if(!(t<=0)){if((()=>{const e=Me().isUndefined(this.lastIsHorizontal),t=i[Y.Z.layoutParams.structure.scrollDirection]===p.Z[Y.Z.layoutParams.structure.scrollDirection].HORIZONTAL!==this.lastIsHorizontal,r=!i[Y.Z.behaviourParams.gallery.vertical.loadMore.enable]!==this.lastInfiniteScroll,a=!e,o=t||r,u=!!i.responsive,c=s||n||l||!(s||n)&&!u&&o&&a;return c||g.call(this,u,o,a),y.call(this),c}).call(this)){t=Math.round(t+r);const e=Math.round(this.lastHeight+this.lastOffsetTop),a=d.call(this,t,!!i.responsive);this.lastHeight=a;const o=((e,t)=>{if(e){if(xe.y.isVerbose()&&console.log("updating height",e),Math.abs(t-e)<6||0===e)return xe.y.isVerbose()&&console.log("Skipping Wix height change: was too small "+t+", now it's "+e),t;xe.y.isVerbose()&&console.warn("Changing wix height from: "+t+" to: "+e),u(Math.round(e))}return e})(a,e);return y.call(this),o}return this.lastHeight}console.warn("Wix setHeight called with height less than 0")}};function ke(e){function t(e){return e.imageInfoType===p.Z.layoutParams_info_layout.SEPARATED_BACKGROUND||e.imageInfoType===p.Z.layoutParams_info_layout.ATTACHED_BACKGROUND?e.controllers_layoutParams_info_horizontalPadding+30:e.controllers_layoutParams_info_horizontalPadding}return{paddingBottom:e.controllers_layoutParams_info_verticalPadding+15+"px",paddingTop:e.controllers_layoutParams_info_verticalPadding+15+"px",paddingRight:t(e)+"px",paddingLeft:t(e)+"px",boxSizing:"border-box",height:"100%"}}function Be(e){return e.style.width<200}function ze(e){const{options:t,style:r}=e;if(p.Z.isLayout("SLIDESHOW")(t))return!1;let i;return i=t[Y.Z.layoutParams.crop.enable]&&t[Y.Z.layoutParams.crop.method]===p.Z[Y.Z.layoutParams.crop.method].FIT?"landscape"===r.orientation?r.width/r.ratio<=90:r.height*r.ratio<=90:r.width<=90||r.height<=90,i}function Fe(e){return e.style.height<150}function Ue(e){return e.style.width{let{}=e;return i().createElement(Ve.Z,{size:"24"})};je.displayName="love_full";var Ye=je,$e=n(17616);const Ke=e=>{let{}=e;return i().createElement($e.Z,{size:"24"})};Ke.displayName="love_empty";var Xe=Ke;class qe extends i().Component{constructor(e){super(e),this.toggleLove=this.toggleLove.bind(this),this.onKeyPress=this.onKeyPress.bind(this),this.getMobileEnabledClick=this.getMobileEnabledClick.bind(this),this.state={animate:!1}}onKeyPress(e){switch(e.keyCode||e.charCode){case 32:case 13:return e.preventDefault(),e.stopPropagation(),this.toggleLove(e),!1}}toggleLove(e){e.stopPropagation(),e.preventDefault(),this.props.actions.eventsListener(We.LOVE_BUTTON_CLICKED,this.props),this.setState({animate:!this.props.isLoved})}buttonClasssName(){const e=[];return e.push("info-element-social-love"),this.props.isLoved?e.push("love_full info-element-loved"):e.push("love_empty"),this.state.animate&&e.push("love-animation"),e.join(" ")}getMobileEnabledClick(e){return this.props.isMobile?{onTouchEnd:e}:{onClick:e}}createLoveCounter(){const e=this.props.loveCount||0;return this.props.showCounter&&e>0?i().createElement("i",{"data-hook":"love-counter",className:"info-member info-element-social-love-count"},e):null}render(){const e=this.props.customLoveCounter||this.createLoveCounter(),t=this.props.viewMode===p.Z.viewMode.SITE||this.props.viewMode===p.Z.viewMode.SEO?this.getMobileEnabledClick(this.toggleLove):{onClick:e=>e.stopPropagation()},r=this.props.isLoved?{color:"red"}:{};return i().createElement("span",(0,o.Z)({className:"info-member info-element-social-love info-element-social-button","data-hook":"love-button"},t,{onKeyDown:this.onKeyPress,tabIndex:p.Z.isLayout("SLIDESHOW")(this.props.options)&&this.props.activeIndex===this.props.idx?0:-1,role:"checkbox","aria-checked":this.props.isLoved,"aria-label":"Love"}),i().createElement("button",{"data-hook":"love-icon",className:this.buttonClasssName(),style:r,tabIndex:-1},this.props.isLoved?i().createElement(Ye,null):i().createElement(Xe,null)),e)}}var Je=qe,Qe=n(62310);const et=e=>{let{}=e;return i().createElement(Qe.Z,{size:"24"})};et.displayName="share_store";var tt=et,rt=n(78321),it=n(9608);const at=e=>{let{}=e;return i().createElement(it.Z,null)};at.displayName="download";var ot=at;class st extends i().Component{constructor(e){super(e),this.onDownloadClick=this.onDownloadClick.bind(this),this.onDownloadKeyPress=this.onDownloadKeyPress.bind(this),this.onDownloadImageVideoKeyPress=this.onDownloadImageVideoKeyPress.bind(this),this.onDownloadTextKeyPress=this.onDownloadTextKeyPress.bind(this),this.getAdditionalAttributes=this.getAdditionalAttributes.bind(this)}onDownloadImageVideoKeyPress(e,t){switch(e.keyCode||e.charCode){case 32:case 13:return e.stopPropagation(),e.preventDefault(),Ge.Z.open(t,"_blank"),this.props.actions.eventsListener(We.DOWNLOAD_BUTTON_CLICKED,this.props),!1}}onDownloadTextKeyPress(e){switch(e.keyCode||e.charCode){case 32:case 13:return e.stopPropagation(),e.preventDefault(),this.props.actions.eventsListener(We.TEXT_DOWNLOAD_BUTTON_CLICKED,this.props),!1}}async onDownloadClick(e,t){const{type:r,isDemo:i,actions:a,customDownloadUrl:o}=this.props;if("text"===r)e.stopPropagation(),e.preventDefault(),a.eventsListener(We.TEXT_DOWNLOAD_BUTTON_CLICKED,this.props);else if(!i){e.stopPropagation(),e.preventDefault();const r=t;if(o){const{url:e,photoId:t}=this.props;(0,rt.W)(o,e,t)}else Ge.Z.open(r,"_blank");this.props.actions.eventsListener(We.DOWNLOAD_BUTTON_CLICKED,this.props)}}onDownloadKeyPress(e,t){const{type:r,isDemo:i}=this.props;"text"===r?this.onDownloadTextKeyPress(e):i||this.onDownloadImageVideoKeyPress(e,t)}getAdditionalAttributes(e){if("text"===this.props.type)return{};const t={download:"download"};return this.props.isDemo||(t.target="_blank",t.href=e),t}render(){const{options:e,isDemo:t,createUrl:r}=this.props,a="info-member info-element-social-download "+(e.allowSocial?"":" pull-right ")+" info-element-social-button",s=i().createElement("i",{className:t?" inactive":""},i().createElement(ot,{size:"20"})),n=e.isStoreGallery?p.Z.urlSizes.DOWNLOAD_SAMPLE:p.Z.urlSizes.DOWNLOAD,l=r(n,p.Z.urlTypes.VIDEO)||r(n,p.Z.urlTypes.HIGH_RES);return i().createElement("div",(0,o.Z)({className:a,"data-hook":"item-download","aria-label":"Download",role:"button",tabIndex:p.Z.isLayout("SLIDESHOW")(e)&&this.props.activeIndex===this.props.idx?0:-1,onClick:e=>this.onDownloadClick(e,l),onKeyDown:e=>this.onDownloadKeyPress(e,l)},this.getAdditionalAttributes(l)),s)}}var nt=st;function lt(e){let{isNewInfoElements:t,shouldControlHorizontalAlignment:r,style:i,horizontalAlignment:a,paddingBottom:o,paddingTop:s,paddingRight:n,paddingLeft:l}=e;const u={...i,textAlign:a,justifyContent:a};return!1===r&&delete u.textAlign,t?u:i||{}}class ut extends i().Component{getSocialShare(){const{options:e,id:t,actions:r}=this.props;if(e.allowSocial){const a=i().createElement("i",{className:"share-store"},i().createElement(tt,null)),o="info-member info-element-social-share info-element-social-button";if(this.props.viewMode===p.Z.viewMode.SITE||this.props.viewMode===p.Z.viewMode.SEO){const s=!this.props.shouldUseNewSocialSharePopup&&p.Z.isLayout("SLIDESHOW")(e)?r.getShare():"";return i().createElement("div",{className:o,"data-hook":"info-element-social-button",key:"item-social-share-"+t,onClick:e=>r.toggleShare(e,!0)},a,s)}return i().createElement("div",{className:o,"data-hook":"info-element-social-button",key:"item-social-share-"+t,onClick:e=>{e.stopPropagation(),e.preventDefault()}},a)}return""}getLoveButton(){const{options:e,isNarrow:t,isSmallItem:r}=this.props;return e.loveButton?i().createElement(Je,(0,o.Z)({},this.props,{itemId:this.props.photoId,showCounter:e.loveCounter&&!r&&!t})):null}getDownload(){const{options:e,isDemo:t,viewMode:r}=this.props;return e.allowDownload&&(r!==p.Z.viewMode.SITE&&r!==p.Z.viewMode.SEO||!t)?i().createElement(nt,this.props):null}render(){const{isNewInfoElements:e,options:t,id:r,showShare:a,isSmallItem:o,isNarrow:s,isShort:n,isVerticalContainer:l}=this.props,u=this.getSocialShare(),c=this.getLoveButton(),h=this.getDownload(),m=[[a&&!e,"hidden"],[o,"small-item"],[n,"short-item"],[s,"narrow-item"],[l,"vertical-item"],[t[Y.Z.layoutParams.thumbnails.enable],"with-arrows"],[t.allowSocial||t.loveButton||t.allowDownload,"populated-item"],["external"===this.props.internalOrExternal||p.Z.hasExternalHorizontalPlacement(t[Y.Z.layoutParams.info.placement])||p.Z.hasExternalVerticalPlacement(t[Y.Z.layoutParams.info.placement]),"text-external-item"],[!e,"info-element-social-absolute"],[e,"info-element-social-new-info-elements"]].filter((e=>e[0])).map((e=>e[1])).join(" "),d=null==e?{}:lt(this.props);return i().createElement("div",{style:d,className:"info-element-social info-align-"+t.galleryTextAlign+" "+m,key:"item-social-"+r,"data-hook":"item-social"},c,h,u)}}class ct extends xe.Z{constructor(){super()}pick(e,t){const r={};return Object.entries(e||{}).forEach((e=>{let[i,a]=e;t.indexOf(i)>=0&&(r[i]=a)})),r}debounce(e,t){var r=this;let i;return function(){for(var a=arguments.length,o=new Array(a),s=0;s{e.apply(r,o)}),t)}}get(e,t,r){const i=String.prototype.split.call(t,/[,[\].]+?/).filter(Boolean).reduce(((e,t)=>null!=e?e[t]:e),e);return void 0===i||i===e?r:i}flipGalleryHorizontalAlign(e){return"flex-start"===e?"flex-end":"flex-end"===e?"flex-start":e}}const ht=new ct,mt=e=>{let{size:t,...r}=e;return i().createElement("svg",(0,o.Z)({viewBox:"0 0 8 17",fill:"currentColor",width:t||"8",height:t||"17"},r),i().createElement("path",{d:"M 7.21 0.91C 7.21 1.79 7.21 3.38 7.21 3.38 7.21 3.38 5.38 3.19 4.92 3.89 4.67 4.27 4.82 5.39 4.8 6.19 5.6 6.19 6.42 6.19 7.22 6.19 7.02 7.12 6.87 7.76 6.72 8.57 6.03 8.57 4.79 8.57 4.79 8.57 4.79 8.57 4.79 16.23 4.79 16.23 4.79 16.23 2.5 16.23 1.43 16.23 1.43 13.87 1.43 11.11 1.43 8.6 0.9 8.6 0.52 8.6-0 8.6-0 7.71-0 7.07-0 6.19 0.5 6.19 0.9 6.19 1.41 6.19 1.48 4.42 1.51 2.68 2.39 1.79 3.38 0.79 4.32 0.91 7.21 0.91Z",fill:"currentColor"}))};mt.displayName="facebook";var pt=mt;const dt=e=>{let{size:t,...r}=e;return i().createElement("svg",(0,o.Z)({viewBox:"0 0 15 15",fill:"currentColor",width:t||"15",height:t||"15"},r),i().createElement("path",{d:"M 7.5 0.01C 3.36 0.01 0 3.37 0 7.5 0 10.69 1.99 13.4 4.79 14.49 4.74 14.01 4.69 13.04 4.83 12.44 4.97 11.85 5.73 8.65 5.73 8.65 5.73 8.65 5.5 8.19 5.5 7.52 5.5 6.46 6.11 5.66 6.88 5.66 7.53 5.66 7.85 6.15 7.85 6.74 7.85 7.39 7.43 8.37 7.21 9.28 7.03 10.04 7.6 10.66 8.34 10.66 9.7 10.66 10.74 9.23 10.74 7.16 10.74 5.34 9.43 4.06 7.56 4.06 5.38 4.06 4.11 5.69 4.11 7.37 4.11 8.03 4.36 8.73 4.68 9.11 4.74 9.19 4.75 9.25 4.73 9.33 4.67 9.57 4.54 10.09 4.52 10.2 4.48 10.34 4.41 10.37 4.26 10.3 3.31 9.86 2.71 8.46 2.71 7.34 2.71 4.93 4.46 2.72 7.76 2.72 10.4 2.72 12.46 4.61 12.46 7.13 12.46 9.76 10.8 11.88 8.5 11.88 7.73 11.88 7 11.48 6.75 11 6.75 11 6.37 12.46 6.28 12.82 6.12 13.43 5.71 14.19 5.4 14.7 6.07 14.89 6.77 15 7.5 15 11.64 15 14.99 11.64 14.99 7.5 14.99 3.37 11.64 0.01 7.5 0.01Z",fill:"currentColor"}))};dt.displayName="pinterest";var yt=dt;const gt=e=>{let{size:t,...r}=e;return i().createElement("svg",(0,o.Z)({viewBox:"0 0 16 13",fill:"currentColor",width:t||"16",height:t||"13"},r),i().createElement("path",{d:"M 15.99 1.6C 15.91 2.19 15.04 2.79 14.51 3.23 15.03 10.77 6.33 15.48 0.01 11.66 1.78 11.67 3.78 11.19 4.83 10.21 3.3 9.96 2.21 9.28 1.79 7.94 2.24 7.9 2.87 8.04 3.17 7.85 1.77 7.33 0.66 6.52 0.59 4.68 1.09 4.73 1.35 5.02 1.97 4.95 1.06 4.38 0.03 2.21 0.96 0.61 2.61 2.4 4.66 3.79 7.87 4.05 7.08 0.72 11.57-1.34 13.59 1.06 14.38 0.89 15.04 0.61 15.71 0.33 15.44 1.09 14.88 1.57 14.33 2.06 14.92 1.95 15.55 1.87 15.99 1.6Z",fill:"currentColor"}))};gt.displayName="twitter";var _t=gt;const vt=e=>{let{size:t,...r}=e;return i().createElement("svg",(0,o.Z)({viewBox:"0 0 17 13",fill:"currentColor",width:t||"17",height:t||"13"},r),i().createElement("path",{d:"M 16.48 0.01C 16.48 0.01 16.11 0.01 16.11 0.01 16.11 0.01 16.11-0 16.11-0 16.11-0 16.1 0.01 16.1 0.01 16.1 0.01 0.96 0.01 0.96 0.01 0.96 0.01 0.95-0 0.95-0 0.95-0 0.94 0.01 0.94 0.01 0.94 0.01 0.52 0.01 0.52 0.01 0.23 0.01 0 0.25 0 0.55 0 0.55 0 12.46 0 12.46 0 12.76 0.23 13 0.52 13 0.52 13 16.48 13 16.48 13 16.77 13 17 12.76 17 12.46 17 12.46 17 0.55 17 0.55 17 0.25 16.77 0.01 16.48 0.01ZM 6.23 5.83C 6.23 5.83 1.05 11.15 1.05 11.15 1.05 11.15 1.05 1.47 1.05 1.47 1.05 1.47 6.23 5.83 6.23 5.83ZM 7.05 6.51C 7.05 6.51 8.2 7.48 8.2 7.48 8.3 7.56 8.41 7.6 8.53 7.6 8.65 7.6 8.76 7.56 8.86 7.48 8.86 7.48 10.01 6.51 10.01 6.51 10.01 6.51 15.28 11.92 15.28 11.92 15.28 11.92 1.78 11.92 1.78 11.92 1.78 11.92 7.05 6.51 7.05 6.51ZM 10.83 5.83C 10.83 5.83 15.95 1.52 15.95 1.52 15.95 1.52 15.95 11.09 15.95 11.09 15.95 11.09 10.83 5.83 10.83 5.83ZM 14.81 1.09C 14.81 1.09 8.53 6.36 8.53 6.36 8.53 6.36 2.25 1.09 2.25 1.09 2.25 1.09 14.81 1.09 14.81 1.09Z",fill:"currentColor"}))};vt.displayName="email";var Pt=vt;const ft=e=>{let{size:t,...r}=e;return i().createElement("svg",(0,o.Z)({viewBox:"0 0 8 15",fill:"currentColor",width:t||"8",height:t||"15"},r),i().createElement("path",{d:"M 7.99 6.38C 7.99 6.38 5 6.38 5 6.38 5 6.38 5 10.53 5 10.53 5 11.28 5.09 11.7 6.09 11.7 6.09 11.7 7.99 11.7 7.99 11.7 7.99 11.7 7.99 14.89 7.99 14.89 7.99 14.89 6.99 15 5.89 15 3.3 15 2 13.29 2 11.38 2 11.38 2 6.38 2 6.38 2 6.38 0.01 6.38 0.01 6.38 0.01 6.38 0.01 3.41 0.01 3.41 2.4 3.2 2.6 1.28 2.8 0 2.8 0 5 0 5 0 5 0 5 3.2 5 3.2 5 3.2 7.99 3.2 7.99 3.2 7.99 3.2 7.99 6.38 7.99 6.38Z",fill:"currentColor"}))};ft.displayName="tumblr";var bt=ft;class It extends i().Component{constructor(e){super(e),this.handleKeyDown=this.handleKeyDown.bind(this),this.getShareArr=this.getShareArr.bind(this),this.buttons=[],this.shareArr=this.getShareArr(this.props.type),this.state={showShare:!1,focusedShareIcon:0}}getShareArr(e){return"text"===e?["facebook","twitter","tumblr","email"]:["facebook","twitter","pinterest","tumblr","email"]}handleKeyDown(e,t){if(this.state.showShare)switch(e.keyCode||e.charCode){case 38:case 37:case 33:return e.preventDefault(),e.stopPropagation(),ht.setStateAndLog(this,"Share Keypress",{focusedShareIcon:Math.max(1,this.state.focusedShareIcon-1)}),!1;case 39:case 40:case 34:return e.preventDefault(),e.stopPropagation(),ht.setStateAndLog(this,"Share Keypress",{focusedShareIcon:Math.min("text"===t?4:5,this.state.focusedShareIcon+1)}),!1;case 9:case 27:return e.preventDefault(),e.stopPropagation(),this.props.actions.toggleShare(e,!1),ht.setStateAndLog(this,"Share Keypress",{showShare:!1,focusedShareIcon:0}),!1}switch(e.keyCode||e.charCode){case 32:case 13:if(e.preventDefault(),e.stopPropagation(),this.state.showShare){const t={network:this.shareArr[this.state.focusedShareIcon-1],shareProps:this.props};this.props.actions.eventsListener(We.SHARE_BUTTON_CLICKED,t),this.props.actions.toggleShare(e,!1),ht.setStateAndLog(this,"Share Keypress",{showShare:!1,focusedShareIcon:0})}else this.props.actions.toggleShare(e,!0),ht.setStateAndLog(this,"Share Keypress",{showShare:!0,focusedShareIcon:1});return!1}return!0}componentDidUpdate(){this.props.showShare&&!this.state.showShare?ht.setStateAndLog(this,"props.showShare is true",{showShare:!0}):!this.props.showShare&&this.state.showShare&&ht.setStateAndLog(this,"props.showShare is false",{showShare:!1});try{if((this.props.viewMode===p.Z.viewMode.SITE||this.props.viewMode===p.Z.viewMode.SEO)&&!this.props.isMobile&&Ge.Z.document&&Ge.Z.document.activeElement&&Ge.Z.document.activeElement.className){const e=Ge.Z.document.activeElement,t=()=>String(e.className).indexOf("network-")>=0;if(!this.state.showShare&&t())return void this.socialShareBox.focus()}const e=this.state.focusedShareIcon;e>0&&this.buttons[e-1].focus()}catch(e){console.warn("Cannot focus on share icon",this.props.focus,e)}}getShareSvg(e){switch(e.toLowerCase()){case p.Z.socialNetworks.FACEBOOK:return pt;case p.Z.socialNetworks.TWITTER:return _t;case p.Z.socialNetworks.PINTEREST:return yt;case p.Z.socialNetworks.EMAIL:return Pt;default:case p.Z.socialNetworks.TUMBLR:return bt}}getShareItem(e,t){const r=this.shareArr.length,a=this.getShareSvg(e);return i().createElement("button",{className:`has-custom-focus network-${t+1}`+(this.props.viewMode===p.Z.viewMode.SITE||this.props.viewMode===p.Z.viewMode.SEO?"":" inactive "),style:{top:this.props.isVerticalContainer?`calc(100% / 6 * ${t+1} + -10px ${4===r?"+ 100% / 12":""})`:"",left:this.props.isVerticalContainer?"":`calc(100% / 6 * ${t+1} + -10px ${4===r?"+ 100% / 12":""})`},onClick:t=>{t.preventDefault(),t.stopPropagation();const r={network:e,shareProps:this.props};this.props.actions.eventsListener(We.SHARE_BUTTON_CLICKED,r)},"data-hook":e+"-share-button",ref:e=>this.buttons[t]=e,title:`Share on ${e}`,"aria-live":"assertive",role:"menuitem",tabIndex:-1,key:e+"-share-icon"},i().createElement(a,{size:"18"}))}render(){const{options:e,id:t,isVerticalContainer:r,actions:a,style:o,type:s}=this.props;if(e.allowSocial){const n=200;return i().createElement("div",{"data-hook":"social-share-box",className:"info-member info-element-social-share-box "+(this.props.showShare?" opened ":" hidden ")+(this.state.showShare?" hovered ":"")+(r?" vertical-item ":""),ref:e=>this.socialShareBox=e,onClick:e=>a.toggleShare(e,!1),onMouseOut:e=>a.toggleShare(e,!1),style:{transform:r?"translateY(-50%) "+(o.height>n?"":"scale("+o.height/n+")"):"translateX(-50%) "+(o.width>n?"":"scale("+o.width/n+")")},tabIndex:p.Z.isLayout("SLIDESHOW")(e)&&this.props.activeIndex===this.props.idx?0:-1,onKeyDown:e=>this.handleKeyDown(e,s),"aria-label":"Share",role:"menu",key:"item-social-share-container-"+t},this.shareArr.map(((e,t)=>this.getShareItem(e,t))))}return!1}}var St={HOVER:"HOVER",EXTERNAL:"EXTERNAL",SLIDESHOW:"SLIDESHOW",COLLECTIONS_HOVER:"COLLECTIONS_HOVER"};const Et={spaceBetweenElements:16,spaceBetweenTitleAndDescription:6};function Ot(){return i().createElement("svg",{className:"buy-icon",xmlns:"http://www.w3.org/2000/svg",width:"38",height:"34",viewBox:"0 0 38 34"},i().createElement("g",{fill:"none",fillRule:"evenodd"},i().createElement("path",{stroke:"currentColor",d:"M.7870039 2.59301758h6.9136797l3.7205137 22.89656932 22.3489443.012",strokeLinecap:"round",strokeLinejoin:"round"}),i().createElement("path",{stroke:"currentColor",d:"M28.0140389 4.49572754h9.017334L34.1188973 19.4727783H11.0089119",strokeLinecap:"round",strokeLinejoin:"round"}),i().createElement("path",{stroke:"currentColor",d:"M15.002193 28.5c1.3971616 0 2.502193 1.1042242 2.502193 2.5s-1.1050314 2.5-2.502193 2.5S12.5 32.3957758 12.5 31s1.1050314-2.5 2.502193-2.5zM27.5 31c0-1.3957758 1.1050314-2.5 2.502193-2.5s2.502193 1.1042242 2.502193 2.5-1.1050314 2.5-2.502193 2.5S27.5 32.3957758 27.5 31z"}),i().createElement("path",{fill:"currentColor",d:"M23 .50625185V11.4270815c0 .2795952-.2319336.5062518-.5.5062518-.2761424 0-.5-.2261351-.5-.5062518V.50625185C22 .22665667 22.2319336 0 22.5 0c.2761424 0 .5.2261351.5.50625185zM8 4h9v1H8z"}),i().createElement("path",{fill:"currentColor",d:"M25.53553353 8.0000001l.7071068.7071068-3.53553392 3.5355339-.70710676-.7071068z"}),i().createElement("path",{fill:"currentColor",d:"M19.0000001 8.70710647l.7071068-.7071068 3.5355339 3.53553392-.7071068.70710676z"})))}class Tt extends i().Component{render(){const{options:e,actions:t}=this.props,r=e.customButtonText||"Click here";let a=this.props.isNewInfoElements?this.props.horizontalAlignment:e.controllers_layoutParams_info_horizontalAlignment;e[Y.Z.behaviourParams.gallery.layoutDirection]===p.Z[Y.Z.behaviourParams.gallery.layoutDirection].RIGHT_TO_LEFT&&(a=ht.flipGalleryHorizontalAlign(e.controllers_layoutParams_info_horizontalAlignment));const o={justifyContent:a,zIndex:17};return this.props.isNewInfoElements&&(o.paddingTop=this.props.paddingTop,o.paddingBottom=this.props.paddingBottom,o.paddingLeft=this.props.paddingLeft,o.paddingRight=this.props.paddingRight),i().createElement("div",{className:"info-member info-element-custom-button-wrapper","data-hook":"custom-button-wrapper",style:o},this.props.small&&e.isStoreGallery?i().createElement(Ot,null):i().createElement("button",{"data-hook":"custom-button-button",className:"info-element-custom-button-button",onClick:()=>t.eventsListener(We.CUSTOM_BUTTON_CLICKED,this.props),style:{cursor:"inherit"},tabIndex:-1},r,i().createElement("div",{className:"overlay"})))}}var Zt=Tt;class Lt extends i().Component{render(){const{title:e}=this.props,t=lt(this.props);this.props.isNewInfoElements&&(t.marginBottom=t.paddingBottom,delete t.paddingBottom);const r=this.props.isNewInfoElements?Math.random():"CONST";return i().createElement("div",{key:r,className:"info-member info-element-title","data-hook":"item-title",style:t},i().createElement("span",null,e))}}class wt extends i().Component{render(){const{description:e}=this.props,t=this.props.isNewInfoElements?Math.random():"CONST";return i().createElement("div",{key:t,className:"info-member info-element-description","data-hook":"item-description",style:lt(this.props)},e.split("\n").map(((e,t)=>i().createElement("span",{key:t},e,i().createElement("br",null)))))}}function At(e,t){return parseInt(e[t],10)}var Rt=new class{isSlideshow(e){return p.Z.isLayout("SLIDESHOW")(e)}getDimensions(e){const t=Ge.Z.getComputedStyle(e),r=parseFloat(t.paddingTop)+parseFloat(t.paddingBottom),i=parseFloat(t.paddingLeft)+parseFloat(t.paddingRight),a=parseFloat(t.borderLeftWidth)+parseFloat(t.borderRightWidth),o=parseFloat(t.borderTopWidth)+parseFloat(t.borderBottomWidth);return{width:e.clientWidth-i-a,height:e.clientHeight-r-o}}saveCurrentDisplay(e){if(!e)return;"none"!==this.getCss(e,"display")&&e.setAttribute("data-display",this.getCss(e,"display"))}getSavedDisplay(e){return e&&e.getAttribute("data-display")||"-webkit-box"}removeElement(e){this.saveCurrentDisplay(e),e.classList.add("hide")}addOrRemoveHideClass(e,t){"none"===t?e.classList.add("hide"):e.classList.remove("hide")}hideElement(e,t){if(void 0===t&&(t=!0),e)if(t){const t=this.getSavedDisplay(e);this.setCss(e,{visibility:"hidden"}),this.addOrRemoveHideClass(e,t)}else this.setCss(e,{visibility:"hidden"})}showElement(e,t){if(void 0===t&&(t=!0),t){const t=this.getSavedDisplay(e);this.setCss(e,{visibility:"inherit"}),this.addOrRemoveHideClass(e,t)}else this.setCss(e,{visibility:"inherit"})}getCss(e,t,r){return Ge.Z.getComputedStyle(e)[t]||r}setCss(e,t){try{Object.assign(e.style,t)}catch(e){}}shouldFix(e,t){const{options:r,title:i,description:a,style:o,externalTotalInfoHeight:s}=e,n=t.options,l=t.title,u=t.description,c=t.style,h=t.externalTotalInfoHeight,m=n.allowSocial||n.loveButton||n.allowDownload,p=r.allowSocial||r.loveButton||r.allowDownload;return o.height!==c.height||s!==h||o.width!==c.width||this.isSlideshow(r)!==this.isSlideshow(n)||r.controllers_layoutParams_info_allowTitle!==n.controllers_layoutParams_info_allowTitle||r.controllers_layoutParams_info_allowDescription!==n.controllers_layoutParams_info_allowDescription||r[Y.Z.layoutParams.info.height]!==n[Y.Z.layoutParams.info.height]||r.textImageSpace!==n.textImageSpace||r.controllers_layoutParams_info_verticalPadding!==n.controllers_layoutParams_info_verticalPadding||r.controllers_layoutParams_info_horizontalPadding!==n.controllers_layoutParams_info_horizontalPadding||r.titleDescriptionSpace!==n.titleDescriptionSpace||r[Y.Z.layoutParams.info.layout]!==n[Y.Z.layoutParams.info.layout]||r.itemDescriptionFont!==n.itemDescriptionFont||r[Y.Z.layoutParams.info.sizeUnits]!==n[Y.Z.layoutParams.info.sizeUnits]||r.itemFont!==n.itemFont||p!==m||i!==l||a!==u}calcAvailableHeight(e,t){const{options:r,infoContainer:i}=e;let a;if(this.isSlideshow(r)){const e=i.getElementsByClassName("info-element-social"),t=e.length>0&&e[0];let o=0,s=0;if(t)o=t.clientHeight,s=parseInt(this.getCss(t,"margin-bottom",0),10);else{(r.allowSocial||r.loveButton||r.allowDownload)&&(o=24,s=24)}const n=24;a=r[Y.Z.layoutParams.info.height]-n-o-s}else a=t;return a}fix(e,t){const{options:r,title:i,description:a}=e;if(t&&(!this.isSlideshow(r)||e.infoContainer)){for(const o of r[Y.Z.layoutParams.info.placement].split(",")){const s=p.Z.hasExternalHorizontalPlacement(o),n=p.Z.hasExternalVerticalPlacement(o),l=this.getDimensions(t);if(e.isNewInfoElements){console.log("newInfo - decrease social size ");const e=t.querySelector(".info-element-social");if(e){const t=Ge.Z.getComputedStyle(e),r=At(t,"height")+At(t,"paddingTop")+At(t,"paddingBottom");console.log("socialHeight",r),l.height-=r}}if(Object.values(l).some((e=>e<=0)))return!1;let u=this.calcAvailableHeight(e,l.height);const c=t.getElementsByClassName("info-element-custom-button-wrapper"),h=t.getElementsByClassName("info-element-title"),m=t.getElementsByClassName("info-element-description");let d=c.length>0;const y=d&&c[0],g=h.length>0&&h[0],_=m.length>0&&m[0],v=l.width<135;if(this.hideElement(g),this.setCss(g,{overflow:"hidden"}),this.hideElement(_,!(n||s)),this.setCss(_,{overflow:"hidden"}),this.hideElement(y,!1),d){const e=this.getDimensions(y).height;Number.isNaN(e)||u+30parseInt(g.clientHeight,10)?parseInt(g.children[0].offsetHeight,10):parseInt(g.clientHeight,10);const t=parseInt(this.getCss(g,"font-size",16),10),r=this.getLineHeightInPixels(this.getCss(g,"line-height","normal"),t);let i=1;if(e>=r&&(i=Math.floor(e/r)),P=Math.floor(u/r),0===P)this.removeElement(g);else{this.setCss(g,{overflow:"hidden"}),this.showElement(g);P>=i?(this.setCss(g,{"-webkit-line-clamp":"none"}),e=r*i):(this.setCss(g,{"-webkit-line-clamp":P+""}),e=r*P);u>e?u-=e:u=0}}if(_&&a&&r.controllers_layoutParams_info_allowDescription&&u>0&&(f&&P>0||!f)){this.setCss(_,{overflow:"visible"}),f&&(u-=r.titleDescriptionSpace||0),u<0&&(u=0);const e=parseInt(this.getCss(_,"font-size",16),10),t=this.getLineHeightInPixels(this.getCss(_,"line-height","normal"),e),i=Math.floor(u/t);0===i?(this.removeElement(_),this.setCss(g,{marginBottom:Et.spaceBetweenElements+"px"})):(this.setCss(_,{overflow:"hidden","-webkit-line-clamp":i+""}),this.showElement(_,!(n||s)))}}return!0}}getLineHeightInPixels(e,t){return t=parseInt(t,10),e.includes("px")?parseInt(e,10):1.2*t}};class Ct extends i().Component{constructor(e){super(e),this.debouncedTryFixLineHeight=ht.debounce(this.tryFixLineHeight.bind(this),500).bind(this)}getTextsClassNames(){const{showShare:e,isNarrow:t}=this.props,r=["info-element-text"];return e&&r.push("hidden"),t&&r.push("narrow-item"),r.join(" ")}getTextsStyles(){const{options:e,style:t}=this.props;let r={alignItems:e.controllers_layoutParams_info_horizontalAlignment,textAlign:e.galleryTextAlign};p.Z.hasExternalVerticalPlacement(e[Y.Z.layoutParams.info.placement])&&(r={...r,...ke(e)}),p.Z.hasExternalHorizontalPlacement(e[Y.Z.layoutParams.info.placement])&&(r={...r,...ke(e),display:"flex",flexDirection:"column",justifyContent:e.controllers_layoutParams_info_verticalAlignment}),p.Z.hasHoverPlacement(e[Y.Z.layoutParams.info.placement])&&(r={...r,display:"flex",justifyContent:e.controllers_layoutParams_info_verticalAlignment,alignContent:e.controllers_layoutParams_info_verticalAlignment}),p.Z.isLayout("SLIDESHOW")(e)&&(r={...r,paddingTop:"0px"});const i="center"===t.justifyContent;return function(e){const t=e.options;return!p.Z.isLayout("SLIDESHOW")(t)&&!p.Z.isLayout("SLIDER")(t)&&!t[Y.Z.layoutParams.thumbnails.enable]&&p.Z.hasHoverPlacement(t[Y.Z.layoutParams.info.placement])&&t[Y.Z.behaviourParams.item.overlay.hoveringBehaviour]!==p.Z[Y.Z.behaviourParams.item.overlay.hoveringBehaviour].NEVER_SHOW&&function(){const{options:t}=e;return t.loveButton||t.allowSocial||t.allowDownload}()&&(t.controllers_layoutParams_info_allowTitle||t.controllers_layoutParams_info_allowTitleAndDescription)}(this.props)&&(r.paddingBottom=70),i&&(r.marginTop=t.height/15),e[Y.Z.behaviourParams.gallery.layoutDirection]===p.Z[Y.Z.behaviourParams.gallery.layoutDirection].RIGHT_TO_LEFT?r.direction="rtl":r.direction="ltr",r}getItemTexts(){const{title:e,description:t,id:r,options:a,style:o,isNarrow:s,shouldShowButton:n,container:l}=this.props,u=e&&a.controllers_layoutParams_info_allowTitle,c=t&&a.controllers_layoutParams_info_allowDescription;let h,m,d;if(d=c?a.titleDescriptionSpace:n?Et.spaceBetweenElements:0,h={overflow:"visible",marginBottom:d},m=n?{marginBottom:Et.spaceBetweenElements}:{marginBottom:0},p.Z.isLayout("SLIDESHOW")(a)&&l&&l.galleryWidth&&l.galleryWidth<800){let e=l.galleryWidth;a[Y.Z.behaviourParams.gallery.horizontal.slideshowInfo.enableCounter]&&(e-=30),a[Y.Z.behaviourParams.gallery.horizontal.slideshowInfo.enablePlayButton]&&(e-=30),h.maxWidth=e,m.maxWidth=e}const y=u&&i().createElement(Lt,{key:"item-title-"+r,title:e,style:h}),g=c&&i().createElement(wt,{key:"item-description-"+r,description:t,style:m}),_=n&&i().createElement(Zt,{type:"button",options:a,style:o,small:s,actions:{eventsListener:this.props.actions.eventsListener}});if(!y&&!g&&!_)return null;const v=this.getTextsStyles(),P=this.getTextsClassNames(),f=i().createElement(i().Fragment,null,y,g,_);return i().createElement("div",{style:v,ref:e=>this.container=e,className:P,dir:"auto"},p.Z.isLayout("SLIDESHOW")(a)?f:i().createElement("div",null,f))}tryFixLineHeight(){Rt.fix(this.props,this.container)||setTimeout((()=>{Rt.fix(this.props,this.container)}),1e3)}componentDidUpdate(e){Rt.shouldFix(e,this.props)&&this.debouncedTryFixLineHeight()}componentDidMount(){this.tryFixLineHeight()}render(){return this.getItemTexts()}}class Nt extends i().Component{constructor(e){super(e),this.state={showShare:!1},this.isSmallItem=this.isSmallItem.bind(this),this.isNarrow=this.isNarrow.bind(this),this.hasRequiredMediaUrl=this.hasRequiredMediaUrl.bind(this),this.getItemTextsDetails=this.getItemTextsDetails.bind(this),this.createTextInfoElement=this.createTextInfoElement.bind(this)}isSmallItem(){return ze(this.props)}isNarrow(){return Be(this.props)}hasRequiredMediaUrl(){const{type:e,url:t}=this.props;return t||"text"===e}getItemTextsDetails(e){void 0===e&&(e=0);const t="image"===this.props.type||"picture"===this.props.type,r=!0===this.props.options.useCustomButton,a=(t||!this.props.options.isStoreGallery)&&r;return i().createElement(Ct,(0,o.Z)({},this.props,{key:`item-texts-${this.props.id}`,infoContainer:this.infoContainer,showShare:this.state.showShare,isSmallItem:this.isSmallItem(),isNarrow:this.isNarrow(),shouldShowButton:a,externalTotalInfoHeight:e,actions:{eventsListener:this.props.eventsListener}}))}createTextInfoElement(){const{options:e,style:t}=this.props,r=e[Y.Z.layoutParams.info.height]+(this.hasRequiredMediaUrl()?0:t.height),a=this.getItemTextsDetails(r);return i().createElement("div",{"data-hook":"external-info-element",style:{height:"100%"}},a)}render(){const e=this.createTextInfoElement();return i().createElement("div",{"data-hook":"info-element",ref:e=>this.infoContainer=e,style:{height:"100%",width:"100%"}},e)}}class xt extends Nt{constructor(e){super(e),this.state={showShare:!1},this.shouldShowHoverOnMobile=this.shouldShowHoverOnMobile.bind(this),this.shouldHover=this.shouldHover.bind(this),this.isSmallItem=this.isSmallItem.bind(this),this.isNarrow=this.isNarrow.bind(this),this.isShort=this.isShort.bind(this),this.isVerticalContainer=this.isVerticalContainer.bind(this),this.toggleShare=this.toggleShare.bind(this),this.hasRequiredMediaUrl=this.hasRequiredMediaUrl.bind(this),this.getShare=this.getShare.bind(this),this.getSocial=this.getSocial.bind(this),this.getItemTextsDetails=this.getItemTextsDetails.bind(this),this.createHoverInfoElement=this.createHoverInfoElement.bind(this),this.createAboveBelowRightLeftInfoElement=this.createAboveBelowRightLeftInfoElement.bind(this),this.createSlideshowInfoElement=this.createSlideshowInfoElement.bind(this)}shouldShowHoverOnMobile(){const{isMobile:e,viewMode:t}=this.props;if(e){const{allowDescription:e,allowTitle:r,titlePlacement:i,hoveringBehaviour:a,itemClick:o,alwaysShowHover:s,previewHover:n}=this.props.options;if(a===p.Z[Y.Z.behaviourParams.item.overlay.hoveringBehaviour].NEVER_SHOW)return!1;if("nothing"===o&&"video"!==this.props.type)return!0;if((r||e)&&p.Z.hasHoverPlacement(i)&&a!==p.Z[Y.Z.behaviourParams.item.overlay.hoveringBehaviour].NEVER_SHOW)return!0;if(s)return!0;if(t===p.Z.viewMode.EDIT&&n)return!0}return!1}shouldHover(){const{options:e,viewMode:t,isMobile:r}=this.props;return e[Y.Z.behaviourParams.item.overlay.hoveringBehaviour]!==p.Z[Y.Z.behaviourParams.item.overlay.hoveringBehaviour].NEVER_SHOW&&(!0===e.alwaysShowHover||(!(t!==p.Z.viewMode.EDIT||!e.previewHover)||(!r||this.shouldShowHoverOnMobile())))}isShort(){return Fe(this.props)}isVerticalContainer(){return Ue(this.props)}isIconTag(e){return["button","i","a","svg","path"].indexOf(e.toLowerCase())>=0}itemHasLink(){const{linkData:e,linkUrl:t}=this.props;return!!(e&&void 0!==e.type||void 0!==t&&""!==t)}toggleShare(e,t){e.stopPropagation(),e.preventDefault(),"mouseout"===e.type&&(this.isIconTag(e.target.tagName)||e.relatedTarget&&this.isIconTag(e.relatedTarget.tagName))||(this.props.shouldUseNewSocialSharePopup?this.props.actions.eventsListener(We.SOCIAL_SHARE_BUTTON_CLICKED,{showSocialSharePopup:!0,...this.props}):this.setState({showShare:void 0===t?!this.state.showShare:!!t}))}getShare(){return i().createElement(It,(0,o.Z)({},this.props,{key:`item-share-${this.props.id}`,showShare:this.state.showShare,isVerticalContainer:this.isVerticalContainer(),actions:{toggleShare:this.toggleShare,eventsListener:this.props.eventsListener}}))}getSocial(){return i().createElement(ut,(0,o.Z)({},this.props,{showShare:this.state.showShare,isSmallItem:this.isSmallItem(),isNarrow:this.isNarrow(),isShort:this.isShort(),isVerticalContainer:this.isVerticalContainer(),key:`item-social-${this.props.id}`,actions:{toggleShare:this.toggleShare,getShare:this.getShare,eventsListener:this.props.eventsListener},shouldUseNewSocialSharePopup:this.props.shouldUseNewSocialSharePopup}))}getInfoContainerStyles(){const{options:e,infoType:t}=this.props;let r={height:"100%",width:"100%"};if(t===St.EXTERNAL){const t=this.itemHasLink();r={...r,cursor:e[Y.Z.behaviourParams.item.clickAction]===p.Z[Y.Z.behaviourParams.item.clickAction].NOTHING||e[Y.Z.behaviourParams.item.clickAction]===p.Z[Y.Z.behaviourParams.item.clickAction].LINK&&!t?"default":"pointer"}}else t===St.SLIDESHOW&&(r={...r,cursor:e[Y.Z.behaviourParams.item.clickAction]===p.Z[Y.Z.behaviourParams.item.clickAction].NOTHING||e[Y.Z.behaviourParams.item.clickAction]===p.Z[Y.Z.behaviourParams.item.clickAction].LINK?"default":"pointer"});return r}createHoverInfoElement(){const{options:e}=this.props,t=this.getSocial(),r=this.getShare(),a={height:"100%",boxSizing:"border-box",paddingLeft:e.controllers_layoutParams_info_verticalPadding+"px",paddingRight:e.controllers_layoutParams_info_verticalPadding+"px",paddingTop:("CENTER"!==e.controllers_layoutParams_info_verticalAlignment?e.controllers_layoutParams_info_verticalPadding:0)+"px",paddingBottom:("CENTER"!==e.controllers_layoutParams_info_verticalAlignment?e.controllers_layoutParams_info_verticalPadding:0)+"px"},o=p.Z.hasHoverPlacement(e[Y.Z.layoutParams.info.placement])&&e[Y.Z.behaviourParams.item.overlay.hoveringBehaviour]!==p.Z[Y.Z.behaviourParams.item.overlay.hoveringBehaviour].NEVER_SHOW?this.getItemTextsDetails():null;return i().createElement("div",{className:"hover-info-element","data-hook":"hover-info-element",style:a},o,t,r)}createSlideshowInfoElement(){const e=this.getSocial(),t=this.getItemTextsDetails(),{options:r}=this.props,a=p.Z.isLayout("SLIDESHOW")(r)?{alignItems:r.controllers_layoutParams_info_horizontalAlignment,display:"flex",flexDirection:"column"}:{};return i().createElement("div",{"data-hook":"slideshow-info-element",style:{height:"100%",overflow:"hidden"}},i().createElement("div",{style:a,className:"slideshow-info-element-inner"},e,t))}createAboveBelowRightLeftInfoElement(){return this.createTextInfoElement()}render(){const{infoType:e}=this.props;let t;switch(e){case St.SLIDESHOW:t=this.createSlideshowInfoElement();break;case St.EXTERNAL:t=this.createAboveBelowRightLeftInfoElement();break;case St.HOVER:t=this.createHoverInfoElement();break;default:console.warn("InfoElement -> EXTERNAL_INFO_TYPE was not selected")}return i().createElement("div",{"data-hook":"info-element",ref:e=>this.infoContainer=e,style:this.getInfoContainerStyles()},t)}}function Dt(e){let{infoToClamp:t,availableHeight:r}=e;Bt(t,"CLAMP START availableHeight "+r);let i=r;const a=function(e){const t=getComputedStyle(e);let r=0;return r+=Ht(t.paddingBottom),r+=Ht(t.paddingTop),r+=Ht(t.borderTop),r+=Ht(t.borderBottom),r+=Ht(t.marginBottom),r+=Ht(t.marginTop),r}(t);i-=a,Bt(t,`availableHeightWithoutPaddingBottomAndMarginBottom ${i}`),i<0&&(i=0);const o=parseInt(Gt(t,"font-size",16),10),s=function(e,t){return t=parseInt(t,10),e.includes("px")?parseInt(e,10):1.2*t}(Gt(t,"line-height","normal"),o);Bt(t,`clamp lineHeight: ${s}`);const n=Math.floor(i/s);Bt(t,`LHF clamp numOfLines: ${n}`),function(e,t){const r=e.querySelector("span");if(0===t)return void Mt(e,{display:"none"});Mt(r,{"-webkit-box-orient":"vertical",display:"-webkit-box",overflow:"hidden","-webkit-line-clamp":t+""})}(t,n),Bt(t,"CLAMP END")}function Mt(e,t){try{Object.assign(e.style,t)}catch(e){console.log("LHF set css error")}}function Gt(e,t,r){return Ge.Z.getComputedStyle(e)[t]||r}function Ht(e){return e&&e.includes("px")?parseInt(e,10):0}function kt(e){return Array.from(e.querySelectorAll(".info-member"))}function Bt(e,t){console.log(`LHF ${e.classList.value}: ${t}`)}var zt=function(e){let t=e.offsetHeight;Bt(e,"sectionRemainingHeight start "+t),kt(e).forEach((e=>{t=function(e,t){const r=e.offsetHeight,i=function(e){const t=getComputedStyle(e);return t?Ht(t.marginTop)+Ht(t.marginBottom):0}(e),a=r+i;return Bt(e,`infoHeightIncludingBordersAndPaddings: ${r}, infoVerticalMargins: ${i}. infoFullHeight: ${a}`),a>t?(Dt({infoToClamp:e,availableHeight:t}),0):t-a}(e,t)}))};function Ft(e){if(e){try{!function(e){const t=function(e){const t=e.querySelectorAll(".section");return Array.from(t)}(e);t.forEach(zt)}(e)}catch(e){console.log("LHF ERROR fixSections"),console.error(e)}console.log("LHF FIX END")}else console.log("LHF RETURN !textsContainer")}const Ut=e=>{const{masterInfoConfig:t,CompsMap:a,shouldControlHorizontalAlignment:o,actions:s}=e,n=(0,r.useRef)(null);(0,r.useEffect)((()=>{Ft(n.current)}),[t]);const l=function(e,t,r,a){const o=["top","middle","bottom"].map((o=>function(e,t,r,a,o){const s=t.order[e],n=function(e,t,r,a,o){const s=function(e){const r=t[e.pathInData];return i().createElement(jt,{InfoClass:e.comp,key:e.pathInData,infoParams:r,internalOrExternal:t.masterType,shouldControlHorizontalAlignment:a,actions:o})};return e.filter((e=>t.enabled[e])).map((e=>r[e])).map(s)}(s,t,r,a,o),l={};0===n.length&&(l.display="none");return i().createElement(Wt,{key:e,position:e,style:l},n)}(o,e,t,r,a))),s={display:"grid",height:"100%"},n=["parent"];"internal"===e.masterType&&n.push("hover-info-element");return i().createElement("div",{key:e.masterType,className:n.join(" "),style:s},o)}(t,a,o,s),u={paddingLeft:t.paddingLeft,paddingRight:t.paddingRight,paddingTop:t.paddingTop,paddingBottom:t.paddingBottom,boxSizing:"border-box",height:"100%"};return i().createElement("div",{ref:n,style:u},l)},Wt=e=>{const t={display:"flex",overflow:"hidden",flexDirection:"column",justifyContent:{top:"flex-start",middle:"center",bottom:"flex-end"}[e.position]};return i().createElement("div",{className:`section ${e.position}`,style:t},i().createElement("div",null,e.children))},Vt=e=>{const t=e.horizontalAlignment.toLowerCase(),r={display:"flex",justifyContent:t,paddingBottom:`${e.paddingBottom}px`};return i().createElement("div",{className:t,style:r},e.children)};function jt(e){const{InfoClass:t,infoParams:r,actions:a}=e;return i().createElement(Vt,{horizontalAlignment:r.horizontalAlignment},i().createElement(t,(0,o.Z)({},r,{isNewInfoElements:!0,shouldControlHorizontalAlignment:e.shouldControlHorizontalAlignment,horizontalAlignment:r.horizontalAlignment,internalOrExternal:e.internalOrExternal,paddingBottom:r.paddingBottom,paddingTop:r.paddingTop,paddingLeft:r.paddingLeft,paddingRight:r.paddingRight,actions:a})))}var Yt=(e,t)=>class extends i().Component{render(){const{internalOrExternal:r,...a}=this.props;return i().createElement("div",{style:{width:"100%"},className:`${t}-${r}`},i().createElement(e,a))}};const $t=Yt(Lt,"info-element-title"),Kt=Yt(wt,"info-element-description"),Xt={Title:{pathInData:"titleParams",comp:$t},CustomButton:{pathInData:"customButtonParams",comp:Yt(Zt,"info-element-custom-button-wrapper")},Description:{pathInData:"descriptionParams",comp:Kt},Social:{pathInData:"socialParams",comp:Yt(ut,"info-element-social")}};var qt=function(e,t,r,a){return i().createElement(Ut,{masterInfoConfig:e,CompsMap:Xt,shouldControlHorizontalAlignment:t,shouldUseLineHeightFixer:r,actions:a})},Jt=function(e,t){const r=(e.get(t)||"").split("_").map((function(e){return e.split(":")})).map((e=>({[e[0]]:e[1]})));return Object.assign({},...r)};function Qt(e,t,r,i,a){const o=Me().cloneDeep(t.infoElementsOptions.newInfoElementsConfig[i]);Me().has(t,"infoElementsOptions.newInfoElementsConfig")&&function(e,t){if(Be({style:t.style})&&e.enabled.Social&&"internal"===e.masterType){const r=.1*t.style.height;e.paddingBottom-=26,e.socialParams.paddingBottom+=r,e.titleParams.paddingLeft=5,e.titleParams.paddingRight=5}Fe({style:t.style})&&"internal"===e.masterType&&(e.paddingBottom=0,e.paddingTop=0,e.socialParams.paddingBottom=.1*t.style.height)}(o,e);const s=function(e,t){const r=e[t.idx];return r.metaData?r.metaData:r}(t.items||[],e);o.titleParams.title=s.title,o.titleParams.title||(o.enabled.Title=!1),o.descriptionParams.description=Me().get(s,"description",""),o.descriptionParams.description||(o.enabled.Description=!1,o.titleParams.paddingBottom-=e.options.titleDescriptionSpace),o.customButtonParams.options={customButtonText:e.options.customButtonText};const n={shouldUseNewSocialSharePopup:r,isNarrow:Be({style:e.style}),isSmallItem:ze({style:e.style,options:Me().pick(e.options,[Y.Z.layoutParams.crop.enable,Y.Z.layoutParams.crop.method,Y.Z.layoutParams.structure.galleryLayout])}),isShort:Fe({style:e.style}),isVerticalContainer:Ue({style:e.style}),photoId:e.photoId,isDemo:e.isDemo,id:e.id,showShare:!1,createUrl:e.createUrl};return o.socialParams={...o.socialParams,...n},function(e,t,r){const i="true"===r.get("overrideConfig");if(!i)return;e.order.top=[],e.order.middle=[],e.order.bottom=[];const a=Jt(r,`${t}Alignments`);for(const[t,r]of Object.entries(a))e[`${t}Params`].horizontalAlignment=r;const o=Jt(r,`${t}Sections`);for(const[t,r]of Object.entries(o))e.order[r].push(t),e.enabled[t]=!0}(o,i,a),o}function er(e,t,r,i){return{masterType:e,paddingTop:0,paddingBottom:0,paddingLeft:0,paddingRight:0,order:r||{top:[],middle:[],bottom:[]},enabled:t||{Title:!1,Description:!1,Social:!1,CustomButton:!1},titleParams:{title:"dummy",horizontalAlignment:"center",paddingTop:0,paddingBottom:0,paddingLeft:0,paddingRight:0},descriptionParams:{description:"dummy_desc",horizontalAlignment:"center",paddingTop:0,paddingBottom:0,paddingLeft:0,paddingRight:0},customButtonParams:{options:{customButtonText:"dummy-button-text"},horizontalAlignment:"center",paddingTop:0,paddingBottom:0,paddingLeft:0,paddingRight:0},socialParams:i||{viewMode:"",options:{galleryTextAlign:"DUMMY",loveButton:!1,allowSocial:!1,loveCounter:!1,allowDownload:!1,hasThumbnails:!1},horizontalAlignment:"center",paddingTop:0,paddingBottom:0,paddingLeft:0,paddingRight:0}}}function tr(e,t){e.externalPlacement=function(e){return e===p.Z.behaviourParams_item_overlay_hoveringBehaviour.APPEARS||e===p.Z.behaviourParams_item_overlay_hoveringBehaviour.ALWAYS_SHOW?"internal":"external"}(t)}function rr(e,t){const r="top";return[r,"middle","bottom"].find((r=>t.order[r].includes(e)))||r}function ir(e,t){return"Title"===e?t.controllers_layoutParams_info_allowTitle:"Description"===e?t.controllers_layoutParams_info_allowDescription:"CustomButton"===e?t.useCustomButton:t.allowSocial||t.allowDownload||t.loveButton}function ar(e,t,r,i){const a=function(e,t,r){return{externalPlacement:"external",internal:er("internal",e,t,r),external:er("external",e,t,r)}}(t,r,i);tr(a,e[Y.Z.layoutParams.info.placement]);["internal","external"].forEach((t=>{const r=a[t];["Title","Description","CustomButton","Social"].forEach((t=>{var i,a,o;i=r,a=ir(t,e),o=t,i.enabled[o]=a}));var i,o;i=r,o=e.galleryTextAlign,i.titleParams.horizontalAlignment=o,i.descriptionParams.horizontalAlignment=o,i.customButtonParams.horizontalAlignment=o,i.socialParams.horizontalAlignment=o,i.socialParams.options.galleryTextAlign=o,function(e,t){if(!1===(e.enabled.Title&&e.enabled.Description))return;rr("Title",e)===rr("Description",e)&&(e.titleParams.paddingBottom=t)}(r,e.titleDescriptionSpace),function(e,t,r,i,a,o){const s=e.socialParams.options;s.loveButton=t,s.allowSocial=r,s.loveCounter=i,s.allowDownload=a,s.hasThumbnails=o}(r,e.loveButton,e.allowSocial,e.loveCounter,e.allowDownload,e[Y.Z.layoutParams.thumbnails.enable]),function(e,t){e.paddingTop+=t,e.paddingBottom+=t}(r,e.controllers_layoutParams_info_verticalPadding),function(e,t){e.paddingLeft+=t,e.paddingRight+=t}(r,e.controllers_layoutParams_info_horizontalPadding)}));const o={...e,newInfoElementsConfig:a};return o.isMigratedFromOldInfo=!0,o}function or(e,t,r,i,a,o,s,n){const l=function(e){const{HOVER:t,EXTERNAL:r,SLIDESHOW:i}=St;if(e===r||e===i)return"external";if(e===t)return"internal";throw new Error(`MasterInfoElement does not support the externalInfoType: ${e}`)}(e);if(n){const e=Me().pick(r.infoElementsOptions.newInfoElementsConfig[l],["order","enabled","socialParams"]),t=function(e,t,r){const i=er(t);return ar(Me().cloneDeep(r.options),Me().cloneDeep(i.enabled),Me().cloneDeep(i.order),Me().cloneDeep(i.socialParams)).newInfoElementsConfig[t]}(0,l,a);t.order=e.order,t.enabled=e.enabled,t.socialParams=Me().merge(t.socialParams,e.socialParams),r.infoElementsOptions.newInfoElementsConfig[l]=t}const u=Qt(a,r,i,l,new Map(Object.entries(t))),c={eventsListener:r.eventsListener||Me().noop};return qt(u,o,s,c)}var sr=function(e,t,r,a,s,n,l,u){let c={...t};if(e){["top","middle","bottom"].forEach((e=>{["external","internal"].forEach((t=>{"string"==typeof u[`infoElementsOptions_${t}_order_${e}`]&&(u[`infoElementsOptions_${t}_order_${e}`]=u[`infoElementsOptions_${t}_order_${e}`].split(","))}))}));const e=Oe(Me().pick(u,["infoElementsOptions_external_enabled_Description","infoElementsOptions_external_enabled_Title","infoElementsOptions_external_enabled_CustomButton","infoElementsOptions_external_enabled_Social","infoElementsOptions_external_socialParams_options_allowDownload","infoElementsOptions_external_socialParams_options_loveButton","infoElementsOptions_external_socialParams_options_allowSocial","infoElementsOptions_external_socialParams_horizontalAlignment","infoElementsOptions_external_order_bottom","infoElementsOptions_external_order_middle","infoElementsOptions_external_order_top","infoElementsOptions_internal_enabled_Description","infoElementsOptions_internal_enabled_Social","infoElementsOptions_internal_socialParams_options_allowDownload","infoElementsOptions_internal_socialParams_options_loveButton","infoElementsOptions_internal_socialParams_options_allowSocial","infoElementsOptions_internal_socialParams_horizontalAlignment","infoElementsOptions_internal_enabled_Title","infoElementsOptions_internal_enabled_CustomButton","infoElementsOptions_internal_order_bottom","infoElementsOptions_internal_order_middle","infoElementsOptions_internal_order_top"]));c.infoElementsOptions={newInfoElementsConfig:{internal:e.infoElementsOptions.internal,external:e.infoElementsOptions.external,externalPlacement:"external"}}}return{customInfoRenderer:(t,l)=>e?or(function(e){return e===p.Z.layoutParams_info_placement.OVERLAY?St.HOVER:St.EXTERNAL}(l),{},c,!0,t,r,a,s):n||i().createElement(xt,(0,o.Z)({infoType:St.EXTERNAL},t)),customHoverRenderer:t=>e?or(St.HOVER,{},c,!0,t,r,a,s):l||i().createElement(xt,(0,o.Z)({infoType:St.HOVER},t))}};function nr(e,t,r){r.EXPERIMENTALallowParallelInfos=!0;return sr(e,t,!1,!0,!0,t.customInfoRenderer,t.customHoverRenderer,r)}function lr(e){const t=e.controllers_experimental_useNewInfo;return!0===t||"true"===t||"yes"===t}const ur=e=>t=>{const r=async e=>{const{numOfItems:r,container:i,options:a,layoutHeight:o,isInfinite:s,isFixedHorizontlaGalleryRatio:n,updatedHeight:l}=e;!function(e){let{viewMode:t,layoutHeight:r,galleryOptions:i,galleryContainer:a,numOfItems:o,isInfinite:s,isFixedHorizontlaGalleryRatio:n,updatedHeight:l,setHeightImp:u}=e;const c={[p.Z.viewMode.SITE]:"site",[p.Z.viewMode.EDIT]:"editor",[p.Z.viewMode.PREVIEW]:"preview",[p.Z.viewMode.SEO]:"site"}[t];He.setWixHeight({height:r,offsetTop:0,styleParams:i,container:a,numOfItems:o,isInfinite:s,isFixedHorizontlaGalleryRatio:n,updatedHeight:l,setHeightImp:u,viewMode:c,clearHeight:void 0})}({viewMode:t.viewMode,layoutHeight:o,galleryOptions:a,galleryContainer:i,numOfItems:r,isInfinite:s,isFixedHorizontlaGalleryRatio:n,updatedHeight:l,setHeightImp:async e=>{await new Promise((e=>setTimeout(e,0))),"function"==typeof t.setLayoutHeightImp&&t.setLayoutHeightImp(e)}})},s=a().GALLERY_CHANGE((e=>r(e))).done(t.eventsListener),n=t.isPrerenderMode?{display:"none"}:{};return i().createElement(e,(0,o.Z)({},t,{eventsListener:s,styles:n}))},cr=e=>t=>{const r=lr(t.options),a={...t.customComponents,...nr(r,t,t.options)};return i().createElement(e,(0,o.Z)({},t,{customComponents:a}))};var hr=n(10651);function mr(e,t,r){return e.indexOf(t)>0&&e.indexOf(r)>-1}function pr(e,t){return e.replace("webp",t)}class dr extends i().Component{constructor(){super(...arguments),(0,H.Z)(this,"myRef",i().createRef())}render(){const e=this.props;if("string"==typeof e.src){const t=yr(e.src,e);return i().createElement("picture",{key:`picture_${e.id}`},function(e){return e.match(/\.\w{3,4}\/v\d\/\w*\//)?i().createElement("source",{srcSet:e.replace(/(jpg|jpeg|png)$/,"webp"),type:"image/webp"}):null}(e.src),function(e){return mr(e,".webp",".png")?i().createElement("source",{srcSet:pr(e,"png"),type:"image/png"}):mr(e,".webp",".jpg")||mr(e,".webp",".jpeg")?i().createElement("source",{srcSet:pr(e,"jpeg"),type:"image/jpeg"}):null}(e.src),i().createElement("img",t))}if("object"==typeof e.src){const t=yr(e.src[e.src.length-1].url,e);return!0===e.priorityLoading?(t.loading="eager",t.fetchpriority="high"):!1===e.priorityLoading&&(t.loading="lazy"),i().createElement("picture",{key:`multi_picture_${e.id}`},e.src.map((t=>{const r=`image/${t.type}`,a=t.dpr||t.url,o=t.forPrinting?hr.k:"source";return i().createElement(o,{srcSet:a,type:r,key:`${e.id}-${t.forPrinting?"printingSrc-":""}${t.type}`})})),i().createElement("img",(0,o.Z)({ref:this.myRef},t)))}return null}}function yr(e,t){return{...{src:e,alt:t.alt,className:t.className,style:t.style,"data-hook":t["data-hook"],loading:t.loading,onLoad:t.onLoad}}}class gr extends i().Component{constructor(e){super(e),(0,H.Z)(this,"getCurrentImage",(()=>{const e={...this.props,...this.state.current,key:"pro-gallery-image-renderer-"+this.props.id};return i().createElement(dr,e)})),this.state={current:{src:e.src},latest:{src:e.src},allowChanges:e.allowChanges}}UNSAFE_componentWillReceiveProps(e){JSON.stringify(this.props.src)!==JSON.stringify(e.src)&&(!1!==this.state.allowChanges?this.setState({current:{src:e.src,priorityLoading:e.priorityLoading},latest:{src:e.src,priorityLoading:e.priorityLoading}}):this.setState({latest:{src:e.src,priorityLoading:e.priorityLoading}})),e.allowChanges&&e.allowChanges!==this.state.allowChanges&&this.setState({allowChanges:!0,current:{...this.state.current,...this.state.latest}})}render(){return this.getCurrentImage()}}class _r{constructor(e){(0,H.Z)(this,"setAccessibilityStateCB",void 0),(0,H.Z)(this,"tabWasPressed",void 0),(0,H.Z)(this,"eventActive",void 0),(0,H.Z)(this,"waitForFirstTabPress",(e=>{9===e.keyCode&&(e.preventDefault(),this.cleanupAccessibility(),this.tabWasPressed=!0,this.setAccessibilityStateCB(!0))})),this.initAccessibility=this.initAccessibility.bind(this),this.cleanupAccessibility=this.cleanupAccessibility.bind(this),this.waitForFirstTabPress=this.waitForFirstTabPress.bind(this),this.tabWasPressed=!1,this.eventActive=!1,this.setAccessibilityStateCB=e}initAccessibility(e){if(void 0===e&&(e=!0),e){this.eventActive=!0;const{addEventListener:e}=Ge.Z||{addEventListener:()=>{}};e("keydown",this.waitForFirstTabPress)}}cleanupAccessibility(){if(this.eventActive){const{removeEventListener:e}=Ge.Z||{removeEventListener:()=>{}};e("keydown",this.waitForFirstTabPress)}}}const vr=e=>t=>{const r=lr(t.options),a=t.options[Y.Z.behaviourParams.item.overlay.hoverAnimation],s=t.options.controllers_behaviourParams_item_overlay_hoverAnimationBehavior;if(!r)return i().createElement(e,t);const n=a.toLowerCase().replaceAll("_","-"),l=`animation-${s.toLowerCase()}`,u={...t.options,[Y.Z.behaviourParams.item.overlay.hoverAnimation]:p.Z.behaviourParams_item_overlay_hoverAnimation.NO_EFFECT};return i().createElement("div",{className:`pro-gallery-overlay-animation-wrapper ${n} ${l}`},i().createElement(e,(0,o.Z)({},t,{options:u})))},Pr=U((e=>t=>{const a=!t.disableAccessibilityHelper,{isAccessible:s}=(e=>{const[t,i]=(0,r.useState)(!1),a=(0,r.useMemo)((()=>new _r(i)),[]);return(0,r.useEffect)((()=>(a.initAccessibility(e),()=>{a.cleanupAccessibility()})),[a,e]),{isAccessible:t}})(a);return i().createElement(e,(0,o.Z)({},t,{isAccessible:s}))})(Le((e=>t=>{const[s,n]=(0,r.useState)(Boolean(null==t?void 0:t.firstInteractionRecorded)),l=()=>{!s&&n(!0)},u=a().HOVER_SET(l).GALLERY_SCROLLED(l).LOAD_MORE_CLICKED(l).ITEM_ACTION_TRIGGERED(l).ITEM_CLICKED(l).done(t.eventsListener);return i().createElement(i().Fragment,null,i().createElement(e,(0,o.Z)({},t,{firstInteractionRecorded:s,eventsListener:u})))})((e=>t=>{const r={...t.customComponents,customImageRenderer:e=>{if([p.Z.viewMode.EDIT,p.Z.viewMode.PREVIEW].includes(t.viewMode))return i().createElement(dr,e);{const r=t.isInFirstFold;let a;t.firstInteractionRecorded||void 0!==r&&(a=r);const o={...e,allowChanges:t.firstInteractionRecorded,priorityLoading:a};return i().createElement(gr,o)}}};return i().createElement(e,(0,o.Z)({},t,{customComponents:r}))})(cr(vr(ur(Ne((e=>t=>i().createElement(i().Fragment,null,i().createElement(e,t),i().createElement("noscript",null,i().createElement("style",null,"\n .pro-gallery-wix-wrapper {display: block !important;}\n .pro-gallery-wix-wrapper .gallery-item-container {opacity: 1 !important; display: block !important;}\n "))))((e=>t=>{const r=()=>i().createElement(e,t);return!t.positionAbsoluteForFiniteHeightGalleries||((a=t.options)[Y.Z.layoutParams.structure.scrollDirection]===p.Z[Y.Z.layoutParams.structure.scrollDirection].HORIZONTAL&&a[Y.Z.layoutParams.structure.galleryRatio.value]>0||a[Y.Z.layoutParams.structure.scrollDirection]===p.Z[Y.Z.layoutParams.structure.scrollDirection].VERTICAL&&!a[Y.Z.behaviourParams.gallery.vertical.loadMore.enable])?r():i().createElement("div",{className:"manual-height-gallery-wrapper"},r());var a})(y((e=>{let{id:t,container:r,options:a,customComponents:n,isPrerenderMode:l,eventsListener:c,isAccessible:h,staticMediaUrls:m,children:p,styles:d,...y}=e;return i().createElement("div",{className:"pro-gallery-wix-wrapper",style:d},i().createElement(s.Z,(0,o.Z)({},y,{id:t,options:a,container:r,createMediaUrl:(0,u.N)({staticMediaUrls:m,isPrerenderMode:l}),settings:{isAccessible:h},eventsListener:c,isPrerenderMode:l,customComponents:n})),p)}))))))))))))),fr={...p.Z.behaviourParams_item_clickAction,EXPAND:"EXPAND",FULLSCREEN:"FULLSCREEN"},br={...p.Z,behaviourParams_item_clickAction:fr};const Ir=(e,t=0,{leading:r=!1,trailing:i=!0}={})=>{let a=null;return function(...o){r&&null===a&&e.apply(this,o),a&&clearTimeout(a),a=i&&r&&!a?setTimeout((()=>{a=null}),t):setTimeout((()=>{i&&e.apply(this,o),a=null}),t)}};const Sr="wixui-",Er=(e,...t)=>{const r=[];return e&&r.push(`${Sr}${e}`),t.forEach((e=>{e&&(r.push(`${Sr}${e}`),r.push(e))})),r.join(" ")},Or=({callback:e,ref:t,elem:i})=>{(0,r.useEffect)((()=>{const r=new ResizeObserver(e);return t?.current&&r.observe(t.current),i&&r.observe(i),()=>{r.disconnect()}}),[t,i,e])},Tr=e=>{const{selectionSelector:t}=e;return".root::item::overlay"===t},Zr=e=>{return{...e,image:{...e.image,uri:(t=e.image.uri,"http"!==t.substr(0,4)?"https://static.wixstatic.com/media/"+t:t)}};var t};function Lr(e){try{return e&&JSON.parse(e)}catch(e){return}}var wr=function(e){return{newInfoElements:e("se_proGalleryMasterInfo")}};var Ar={root:"gallery",galleryItem:"gallery__item"},Rr=n(37757),Cr=JSON.parse('{"$schema":"./ProGallery.options.schema.json","controllers_layoutParams_structure_galleryRatio_method":{"key":"controllers_layoutParams_structure_galleryRatio_method","title":"Native_ProGallery_GalleryRatio","type":"OPTIONS","controller":"RADIO","thumbnailsSize":"MEDIUM","default":"MANUAL","options":[{"value":"MANUAL","title":"Native_ProGallery_GalleryRatio_Option1"},{"value":"FIXED","title":"Native_ProGallery_GalleryRatio_Option2"}],"description":"Native_ProGallery_GalleryRatio_Tooltip"},"behaviourParams_gallery_blockContextMenu":{"key":"behaviourParams_gallery_blockContextMenu","title":"Native_ProGallery_Settings_MediaProtection_Label","type":"BOOLEAN","default":true,"description":"Native_ProGallery_Settings_MediaProtection_Tooltip"},"controllers_layoutParams_structure_galleryRatio_value":{"key":"controllers_layoutParams_structure_galleryRatio_value","title":"","type":"OPTIONS","controller":"THUMBNAILS","default":1,"thumbnailsSize":"SMALL","options":[{"value":3,"title":"Native_ProGallery_Layout_CropRatio_List_Item0","icon":"imageRatio_3_1"},{"value":1.7777777777777777,"title":"Native_ProGallery_Layout_CropRatio_List_Item1","icon":"imageRatio_16_9"},{"value":1.3333333333333333,"title":"Native_ProGallery_Layout_CropRatio_List_Item2","icon":"imageRatio_4_3"},{"value":1,"title":"Native_ProGallery_Layout_CropRatio_List_Item3","icon":"imageRatio_1_1"},{"value":0.75,"title":"Native_ProGallery_Layout_CropRatio_List_Item4","icon":"imageRatio_3_4"}]},"layoutParams_structure_galleryLayout":{"key":"layoutParams_structure_galleryLayout","title":"ProGallery_Layout_Tab_Custom_Label","noBottomDivider":true,"type":"OPTIONS","controller":"THUMBNAILS","options":[{"value":0,"title":"ProGallery_Layout_Layouts_Type12","icon":"layouts_collage"},{"value":1,"title":"ProGallery_Layout_Layouts_Type13","icon":"layouts_masonry"},{"value":2,"title":"ProGallery_Layout_Layouts_Type3","icon":"layouts_grid"},{"value":3,"title":"ProGallery_Layout_Layouts_Type7","icon":"layouts_thumbnail"},{"value":4,"title":"ProGallery_Layout_Layouts_Type8","icon":"layouts_slider"},{"value":5,"title":"ProGallery_Layout_Layouts_Type9","icon":"layouts_slideshow"},{"value":6,"title":"ProGallery_Layout_Layouts_Type10","icon":"layouts_strip"},{"value":7,"title":"ProGallery_Layout_Layouts_Type6","icon":"layouts_column"},{"value":10,"title":"ProGallery_Layout_Layouts_Type14","icon":"layouts_bricks"},{"value":11,"title":"ProGallery_Layout_Layouts_Type15","icon":"layouts_mix"},{"value":12,"title":"ProGallery_Layout_Layouts_Type16","icon":"layouts_alternate"}],"default":0},"layoutParams_structure_scrollDirection":{"key":"layoutParams_structure_scrollDirection","title":"Native_ProGallery_Layout_Orientation_Label","type":"OPTIONS","controller":"RADIO","default":"VERTICAL","options":[{"value":"VERTICAL","title":"ProGallery_Layout_DisplaySection_Option1"},{"value":"HORIZONTAL","title":"ProGallery_Layout_DisplaySection_Option2"}]},"controllers_layoutParams_structure_imageWidth_method":{"key":"controllers_layoutParams_structure_imageWidth_method","title":"Native_ProGallery_Layout_GalleryWidth_Label","type":"OPTIONS","controller":"RADIO","thumbnailsSize":"MEDIUM","default":"FIXED","options":[{"value":"RESPONSIVE","title":"Native_ProGallery_Layout_GalleryWidth_Responsive"},{"value":"FIXED","title":"Native_ProGallery_Layout_GalleryWidth_Fixed"}]},"controllers_layoutParams_structure_numberOfDisplayedItems":{"key":"controllers_layoutParams_structure_numberOfDisplayedItems","title":"Native_ProGallery_Layout_GalleryWidth_Responsive_Number","default":3,"max":10,"min":1,"type":"NUMBER"},"layoutParams_structure_layoutOrientation":{"key":"layoutParams_structure_layoutOrientation","controller":"RADIO","title":"ProGallery_Layout_DisplaySection_Orientation_SubHeader","options":[{"value":"VERTICAL","title":"ProGallery_Layout_DisplaySection_Orientation_Option1"},{"value":"HORIZONTAL","title":"ProGallery_Layout_DisplaySection_Orientation_Option2"}],"type":"OPTIONS","default":"VERTICAL"},"behaviourParams_gallery_layoutDirection":{"key":"behaviourParams_gallery_layoutDirection","title":"ProGallery_Layout_Layout_Direction_Label","controller":"RADIO","type":"OPTIONS","default":"LEFT_TO_RIGHT","options":[{"value":"LEFT_TO_RIGHT","title":"ProGallery_Layout_Layout_Direction_LTR"},{"value":"RIGHT_TO_LEFT","title":"ProGallery_Layout_Layout_Direction_RTL"}]},"layoutParams_structure_itemSpacing":{"key":"layoutParams_structure_itemSpacing","title":"ProGallery_Layout_Spacing","type":"NUMBER","min":0,"max":300,"step":1,"default":10,"unit":"px"},"layoutParams_structure_numberOfGridRows":{"key":"layoutParams_structure_numberOfGridRows","title":"ProGallery_Layouts_Columns_Column_Label","default":1,"max":3,"min":1,"type":"NUMBER"},"layoutParams_structure_numberOfColumns":{"key":"layoutParams_structure_numberOfColumns","title":"ProGallery_Layout_Layouts_Gallery_Row_Label","default":3,"max":10,"min":1,"type":"NUMBER"},"layoutParams_groups_density":{"key":"layoutParams_groups_density","title":"ProGallery_Layout_CollageDens_Label","type":"FLOAT","default":0.8,"min":0,"max":1,"step":0.1,"unit":"%"},"layoutParams_targetItemSize_value":{"key":"layoutParams_targetItemSize_value","title":"ProGallery_Layout_Thumbnail_Size","type":"NUMBER","default":48,"min":1,"max":100,"step":1,"unit":"px"},"layoutParams_crop_method":{"key":"layoutParams_crop_method","title":"ProGallery_Layout_Thumbnail_Resize","type":"OPTIONS","controller":"THUMBNAILS","thumbnailsSize":"MEDIUM","default":"FILL","options":[{"value":"FILL","title":"ProGallery_Layout_Thumbnail_Crop","icon":"thumbnailResize_crop"},{"value":"FIT","title":"ProGallery_Layout_Thumbnail_Fit","icon":"thumbnailResize_fit"}]},"layoutParams_crop_ratios":{"key":"layoutParams_crop_ratios","type":"OPTIONS","controller":"THUMBNAILS","title":"ProGallery_Layouts_Slider_ImageRatio_Label","default":1,"thumbnailsSize":"SMALL","options":[{"value":1.7777777777777777,"title":"Native_ProGallery_Layout_CropRatio_List_Item1","icon":"imageRatio_16_9"},{"value":1.3333333333333333,"title":"Native_ProGallery_Layout_CropRatio_List_Item2","icon":"imageRatio_4_3"},{"value":1,"title":"Native_ProGallery_Layout_CropRatio_List_Item3","icon":"imageRatio_1_1"},{"value":0.75,"title":"Native_ProGallery_Layout_CropRatio_List_Item4","icon":"imageRatio_3_4"},{"value":0.5625,"title":"Native_ProGallery_Layout_CropRatio_List_Item5","icon":"imageRatio_9_16"}]},"layoutParams_structure_responsiveMode":{"key":"layoutParams_structure_responsiveMode","title":"Native_ProGallery_Layout_ResponsiveType","type":"OPTIONS","controller":"RADIO","default":"FIT_TO_SCREEN","options":[{"value":"FIT_TO_SCREEN","title":"ProGallery_Layouts_Grid_Responsive_Option1"},{"value":"SET_ITEMS_PER_ROW","title":"ProGallery_Layouts_Grid_Responsive_Option2"}]},"layoutParams_thumbnails_alignment":{"key":"layoutParams_thumbnails_alignment","title":"ProGallery_Layout_Layouts_Thumbnails_Placement_Label","type":"OPTIONS","controller":"THUMBNAILS","thumbnailsSize":"MEDIUM","options":[{"value":"BOTTOM","title":"Native_ProGallery_Layout_ThumbnailPlacement_List_Item1","icon":"placement_down"},{"value":"TOP","title":"Native_ProGallery_Layout_ThumbnailPlacement_List_Item2","icon":"placement_up"},{"value":"RIGHT","title":"Native_ProGallery_Layout_ThumbnailPlacement_List_Item3","icon":"placement_right"},{"value":"LEFT","title":"Native_ProGallery_Layout_ThumbnailPlacemento_List_Item4","icon":"placement_left"}],"default":"BOTTOM"},"layoutParams_thumbnails_size":{"key":"layoutParams_thumbnails_size","title":"ProGallery_Layout_Thumbnail_Size","type":"NUMBER","default":120,"min":30,"max":300,"unit":"px"},"layoutParams_thumbnails_spacing":{"key":"layoutParams_thumbnails_spacing","title":"ProGallery_Layout_Layouts_Thumbnails_Spacing_Label","type":"NUMBER","default":4,"min":0,"max":30,"unit":"px"},"controllers_layoutParams_thumbnails_marginToGallery":{"key":"controllers_layoutParams_thumbnails_marginToGallery","title":"ProGallery_Layout_Layouts_Thumbnails_marginToGallery_Label","description":"ProGallery_Layout_marginToGallery_Tooltip","type":"NUMBER","default":8,"min":0,"max":400},"behaviourParams_gallery_vertical_loadMore_enable":{"key":"behaviourParams_gallery_vertical_loadMore_enable","title":"ProGallery_Layout_LoadMore_Section_Label","type":"BOOLEAN","default":false},"behaviourParams_gallery_vertical_loadMore_text":{"key":"behaviourParams_gallery_vertical_loadMore_text","title":"ProGallery_Layout_LoadMore_Button_Title","type":"TEXT","default":"Load More"},"behaviourParams_gallery_horizontal_navigationDuration":{"key":"behaviourParams_gallery_horizontal_navigationDuration","title":"ProGallery_Settings_Design_Scroll_Duration_Title","type":"NUMBER","default":800,"min":100,"max":1000,"step":100,"unit":"ms"},"behaviourParams_gallery_horizontal_loop":{"key":"behaviourParams_gallery_horizontal_loop","title":"ProGallery_Expand_Loop_Label","description":"ProGallery_Expand_Loop_Tooltip","type":"BOOLEAN","default":false},"behaviourParams_gallery_horizontal_autoSlide_interval":{"key":"behaviourParams_gallery_horizontal_autoSlide_interval","title":"ProGallery_Layout_SlideshowSection_Interval","min":2,"max":30,"type":"NUMBER","default":4},"behaviourParams_gallery_horizontal_autoSlide_speed":{"key":"behaviourParams_gallery_horizontal_autoSlide_speed","title":"ProGallery_Layout_SlideshowSection_Layout_Speed","min":1,"max":500,"type":"NUMBER","default":50},"behaviourParams_gallery_horizontal_autoSlide_pauseOnHover":{"key":"behaviourParams_gallery_horizontal_autoSlide_pauseOnHover","title":"ProGallery_Layout_SlideshowSection_Pause_On_Hover","type":"BOOLEAN","default":true},"layoutParams_navigationArrows_enable":{"key":"layoutParams_navigationArrows_enable","title":"ProGallery_Design_Navigation_Arrows_Toggle","type":"BOOLEAN","default":true},"layoutParams_navigationArrows_size":{"key":"layoutParams_navigationArrows_size","title":"ProGallery_Design_Arrows_Size","type":"NUMBER","min":8,"max":150,"default":23,"unit":"px"},"layoutParams_navigationArrows_position":{"key":"layoutParams_navigationArrows_position","title":"ProGallery_Design_Arrows_Position_Title","type":"OPTIONS","controller":"RADIO","default":"ON_GALLERY","options":[{"value":"ON_GALLERY","title":"ProGallery_Design_Arrows_Position_On_Gallery"},{"value":"OUTSIDE_GALLERY","title":"ProGallery_Design_Arrows_Position_Outside"},{"value":"MOUSE_CURSOR","title":"Native_ProGallery_Layout_Arrows_Position_Cursor"}]},"layoutParams_navigationArrows_container_type":{"key":"layoutParams_navigationArrows_container_type","title":"Native_ProGallery_Design_Arrows_Container_Type","type":"OPTIONS","default":"NONE","options":[{"value":"NONE","title":"Native_ProGallery_Design_Arrows_Container_None"},{"value":"BOX","title":"Native_ProGallery_Design_Arrows_Container_Box"}]},"layoutParams_navigationArrows_mouseCursorContainerMaxWidth":{"key":"layoutParams_navigationArrows_mouseCursorContainerMaxWidth","type":"OPTIONS","title":"Native_ProGallery_Layout_Arrows_Position_Cursor_Label","description":"Native_ProGallery_Layout_Arrows_Position_Cursor_Tooltip","controller":"THUMBNAILS","thumbnailsSize":"EXTRA_LARGE","default":"100","options":[{"value":"100","title":"Native_ProGallery_Layout_Arrows_Position_Cursor_EntireGallery","icon":"cursor_full_gallery"},{"value":"30","title":"Native_ProGallery_Layout_Arrows_Position_Cursor_GalleryEdges","icon":"cursor_edges_gallery"}]},"layoutParams_navigationArrows_verticalAlignment":{"key":"layoutParams_navigationArrows_verticalAlignment","title":"ProGallery_settings_design_verticalposition","type":"OPTIONS","default":"ITEM_CENTER","options":[{"value":"ITEM_CENTER","title":"ProGallery_settings_design_verticalposition_center_gallery"},{"value":"IMAGE_CENTER","title":"ProGallery_settings_design_verticalposition_center_image"},{"value":"INFO_CENTER","title":"ProGallery_settings_design_verticalposition_center_text"}]},"behaviourParams_item_content_hoverAnimation":{"key":"behaviourParams_item_content_hoverAnimation","title":"ProGallery_Design_Image_Hover_Animation_Label","type":"OPTIONS","controller":"THUMBNAILS","default":"NO_EFFECT","options":[{"value":"NO_EFFECT","title":"ProGallery_Design_Image_Hover_Animation_NoEffect","emptyState":true},{"value":"ZOOM_IN","title":"ProGallery_Design_Image_Hover_Animation_ZoomIn","icon":"hover_zoomIn"},{"value":"BLUR","title":"ProGallery_Design_Image_Hover_Animation_Blur","icon":"hover_blur"},{"value":"GRAYSCALE","title":"ProGallery_Design_Image_Hover_Animation_Grayscale","icon":"hover_grayscale"},{"value":"SHRINK","title":"ProGallery_Design_Image_Hover_Animation_Shrink","icon":"hover_shrink"},{"value":"INVERT","title":"ProGallery_Design_Image_Hover_Animation_Invert","icon":"hover_invert"},{"value":"COLOR_IN","title":"ProGallery_Design_Image_Hover_Animation_ColorIn","icon":"hover_color"},{"value":"DARKENED","title":"ProGallery_Design_Image_Hover_Animation_Darkened","icon":"hover_darken"},{"value":"MAIN_COLOR","title":"ProGallery_Design_Image_Hover_Animation_MainColor","icon":"hover_maincolor"}],"description":"ProGallery_Design_Image_Hover_Animation_Title"},"behaviourParams_item_content_loader":{"key":"behaviourParams_item_content_loader","title":"ProGallery_Settings_Image_Loading_Mode","options":[{"value":"BLUR","title":"ProGallery_Settings_Image_Loading_Mode_Blur"},{"value":"MAIN_COLOR","title":"ProGallery_Settings_Image_Loading_Mode_Color_Main_Color"}],"type":"OPTIONS","controller":"RADIO","default":"MAIN_COLOR"},"behaviourParams_item_content_placementAnimation":{"key":"behaviourParams_item_content_placementAnimation","title":"Image Placement Animation","type":"OPTIONS","default":"NO_EFFECT","options":[{"value":"NO_EFFECT","title":"No Effect"},{"value":"SLIDE","title":"Slide"}]},"behaviourParams_gallery_scrollAnimation":{"key":"behaviourParams_gallery_scrollAnimation","title":"ProGallery_Design_Scroll_Animation_Label","description":"ProGallery_Design_Scroll_Animation_TOOLTIP","controller":"THUMBNAILS","options":[{"value":"NO_EFFECT","title":"ProGallery_Design_Scroll_Animation_NoEffect","emptyState":true},{"value":"FADE_IN","title":"ProGallery_Design_Scroll_Animation_FadeIn","icon":"scroll_fadeIn"},{"value":"GRAYSCALE","title":"ProGallery_Design_Scroll_Animation_Grayscale","icon":"scroll_grayscale"},{"value":"SLIDE_UP","title":"ProGallery_Design_Scroll_Animation_SlideUp","icon":"scroll_slideUp"},{"value":"SLIDE_UP","title":"ProGallery_Design_Scroll_Animation_SlideIn","icon":"scroll_slideIn","id":"SLIDE_IN"},{"value":"EXPAND","title":"ProGallery_Design_Scroll_Animation_Expand","icon":"scroll_expand"},{"value":"SHRINK","title":"ProGallery_Design_Scroll_Animation_Shrink","icon":"scroll_shrink"},{"value":"ZOOM_OUT","title":"ProGallery_Design_Scroll_Animation_ZoomOut","icon":"scroll_zoomOut"},{"value":"ONE_COLOR","title":"ProGallery_Design_Scroll_Animation_OneColor","icon":"scroll_oneColor"}],"type":"OPTIONS","default":"NO_EFFECT"},"behaviourParams_gallery_horizontal_slideAnimation":{"key":"behaviourParams_gallery_horizontal_slideAnimation","title":"ProGallery_Design_Slide_Animation_Label","type":"OPTIONS","default":"SCROLL","controller":"THUMBNAILS","options":[{"value":"SCROLL","title":"ProGallery_Design_Slide_Animation_Scroll","icon":"slide_scroll"},{"value":"FADE","title":"ProGallery_Design_Slide_Animation_Fade","icon":"slide_fade"},{"value":"DECK","title":"ProGallery_Design_Slide_Animation_Stack","icon":"slide_stack"}],"description":"ProGallery_Design_Slide_Animation_Title"},"behaviourParams_item_video_enablePlayButton":{"key":"behaviourParams_item_video_enablePlayButton","title":"ProGallery_Settings_Show_Play_Button_Label","type":"BOOLEAN","default":true},"behaviourParams_item_video_playTrigger":{"key":"behaviourParams_item_video_playTrigger","title":"ProGallery_Settings_Play_Label","options":[{"value":"HOVER","title":"ProGallery_Settings_Hover_Label"},{"value":"AUTO","title":"ProGallery_Settings_Auto_Label"},{"value":"CLICK","title":"ProGallery_Settings_Click_Label"}],"type":"OPTIONS","default":"HOVER"},"behaviourParams_item_video_speed":{"key":"behaviourParams_item_video_speed","title":"ProGallery_Settings_Playback_Label","type":"OPTIONS","options":[{"value":0.25,"title":"ProGallery_Settings_Playback_25"},{"value":0.5,"title":"ProGallery_Settings_Playback_50"},{"value":0.75,"title":"ProGallery_Settings_Playback_75"},{"value":1,"title":"ProGallery_Settings_Playback_100"},{"value":1.25,"title":"ProGallery_Settings_Playback_125"},{"value":1.5,"title":"ProGallery_Settings_Playback_150"},{"value":1.75,"title":"ProGallery_Settings_Playback_175"},{"value":2,"title":"ProGallery_Settings_Playback_200"}],"default":1},"controllers_optionsMap_behaviourParams_item_video_volume":{"key":"controllers_optionsMap_behaviourParams_item_video_volume","title":"ProGallery_Settings_Sound_Label","type":"BOOLEAN","default":false},"behaviourParams_item_video_loop":{"key":"behaviourParams_item_video_loop","title":"ProGallery_Settings_Loop_Label","type":"BOOLEAN","default":true,"noBottomDivider":true},"behaviourParams_item_clickAction":{"key":"behaviourParams_item_clickAction","title":"ProGallery_Settings_ClickOptions_Label","noBottomDivider":true,"options":[{"value":"EXPAND","title":"ProGallery_Settings_ClickOptions_Expand"},{"value":"FULLSCREEN","title":"ProGallery_Settings_ClickOptions_Fullscreen"},{"value":"LINK","title":"ProGallery_Settings_ClickOptions_Link"},{"value":"NOTHING","title":"ProGallery_Settings_ClickOptions_Nothing"},{"value":"MAGNIFY","title":"ProGallery_Expand_Viewing_Settings_Magnifying"}],"type":"OPTIONS","default":"NOTHING","isRelevantPlaceholder":{"message":"Native_ProGallery_Settings_ClickOptions_Disabled"}},"behaviourParams_item_content_magnificationValue":{"key":"behaviourParams_item_content_magnificationValue","title":"ProGallery_Expand_Viewing_Settings_Magnifying_Size","type":"FLOAT","default":2,"min":1.5,"max":5,"step":0.5},"layoutParams_navigationArrows_padding":{"key":"layoutParams_navigationArrows_padding","title":"ProGallery_settings_design_Horizontal_padding","type":"NUMBER","min":0,"max":100,"default":23,"unit":"px"},"behaviourParams_gallery_vertical_loadMore_amount":{"key":"behaviourParams_gallery_vertical_loadMore_amount","title":"ProGallery_Layout_LoadMore_Amount","type":"OPTIONS","controller":"RADIO","default":"ALL","options":[{"value":"PARTIAL","title":"ProGallery_Layout_LoadMore_Amount_Partial"},{"value":"ALL","title":"ProGallery_Layout_LoadMore_Amount_All"}]},"behaviourParams_gallery_horizontal_autoSlide_behaviour":{"key":"behaviourParams_gallery_horizontal_autoSlide_behaviour","title":"ProGallery_Layout_SlideshowSection_Slide_Automatically","type":"OPTIONS","default":"OFF","options":[{"value":"OFF","title":"Native_ProGallery_Layout_Slideshow_List_Off"},{"value":"INTERVAL","title":"ProGallery_Layout_SlideshowSection_Interval_Header"},{"value":"CONTINUOUS","title":"ProGallery_Layout_SlideshowSection_Continuous_Header"}]},"behaviourParams_gallery_horizontal_slideTransition":{"key":"behaviourParams_gallery_horizontal_slideTransition","title":"ProGallery_Settings_Design_Slide_Transition_Title","options":[{"value":"linear","title":"ProGallery_Settings_Design_Slide_Transition_Linear"},{"value":"cubic-bezier(0.46,0.1,0.25,1)","title":"ProGallery_Settings_Design_Slide_Transition_Ease_In_Out"},{"value":"cubic-bezier(0.86,0,0.5,1)","title":"ProGallery_Settings_Design_Slide_Transition_Ease_In"},{"value":"cubic-bezier(0.31,1.17,0.58,1.07)","title":"ProGallery_Settings_Design_Slide_Transition_Ease_Out"},{"value":"cubic-bezier(0.49,-0.12,0.49,0.04)","title":"ProGallery_Settings_Design_Slide_Transition_Bounce_In"},{"value":"cubic-bezier(0.58,1.65,0.29,0.95)","title":"ProGallery_Settings_Design_Slide_Transition_Bounce_Out"},{"value":"cubic-bezier(0.6,-0.36,0.41,1.23)","title":"ProGallery_Settings_Design_Slide_Transition_Bounce_In_Out"},{"value":"cubic-bezier(0.86,0,0.07,1)","title":"ProGallery_Settings_Design_Slide_Transition_Expo"}],"type":"OPTIONS","default":"cubic-bezier(0.46,0.1,0.25,1)"},"controllers_layoutParams_external_info_placement":{"key":"controllers_layoutParams_external_info_placement","title":"Native_ProGallery_Settings_Text_Placement","controller":"THUMBNAILS","options":[{"value":"BELOW","title":"Native_ProGallery_Settings_Text_Placement_Below","icon":"infoPosition_below"},{"value":"ABOVE","title":"Native_ProGallery_Settings_Text_Placement_Above","icon":"infoPosition_above"},{"value":"RIGHT","title":"Native_ProGallery_Settings_Text_Placement_Right","icon":"infoPosition_right"},{"value":"LEFT","title":"Native_ProGallery_Settings_Text_Placement_Left","icon":"infoPosition_left"},{"value":"ALTERNATE_HORIZONTALLY","title":"Native_ProGallery_Settings_Text_Placement_Alt_Horizontal","icon":"infoPosition_left"},{"value":"ALTERNATE_VERTICALLY","title":"Native_ProGallery_Settings_Text_Placement_Alt_Vertical","icon":"infoPosition_above"}],"type":"OPTIONS","default":"BELOW"},"controllers_layoutParams_external_info_SocialButtonsHorizontalAlignment":{"key":"controllers_layoutParams_external_info_SocialButtonsHorizontalAlignment","title":"ProGallery_NewInfo_Icons_Ext_Alignment_Label","options":[{"value":"LEFT","title":"ProGallery_NewInfo_Icons_Ext_Alignment_Left","icon":"horizontal_left"},{"value":"CENTER","title":"ProGallery_NewInfo_Icons_Ext_Alignment_Center","icon":"alignment_center"},{"value":"RIGHT","title":"ProGallery_NewInfo_Icons_Ext_Alignment_Right","icon":"horizontal_right"}],"type":"OPTIONS","default":"LEFT","thumbnailsSize":"SMALL","controller":"THUMBNAILS"},"controllers_layoutParams_internal_info_SocialButtonsHorizontalAlignment":{"key":"controllers_layoutParams_internal_info_SocialButtonsHorizontalAlignment","title":"ProGallery_NewInfo_Icons_Alignment_Label","options":[{"value":"LEFT","title":"ProGallery_NewInfo_Icons_Alignment_Left","icon":"horizontal_left"},{"value":"CENTER","title":"ProGallery_NewInfo_Icons_Alignment_Center","icon":"alignment_center"},{"value":"RIGHT","title":"ProGallery_NewInfo_Icons_Alignment_Right","icon":"horizontal_right"}],"type":"OPTIONS","default":"LEFT","thumbnailsSize":"SMALL","controller":"THUMBNAILS"},"layoutParams_info_placement":{"key":"layoutParams_info_placement","title":"Native_ProGallery_Settings_Text_Placement","controller":"THUMBNAILS","options":[{"value":"BELOW","title":"Native_ProGallery_Settings_Text_Placement_Below","icon":"infoPosition_below"},{"value":"ABOVE","title":"Native_ProGallery_Settings_Text_Placement_Above","icon":"infoPosition_above"},{"value":"RIGHT","title":"Native_ProGallery_Settings_Text_Placement_Right","icon":"infoPosition_right"},{"value":"LEFT","title":"Native_ProGallery_Settings_Text_Placement_Left","icon":"infoPosition_left"},{"value":"OVERLAY","title":"Native_ProGallery_Settings_Text_Placement_Hover","icon":"infoPosition_onImage"},{"value":"ALTERNATE_HORIZONTALLY","title":"Native_ProGallery_Settings_Text_Placement_Alt_Horizontal","icon":"infoPosition_left"},{"value":"ALTERNATE_VERTICALLY","title":"Native_ProGallery_Settings_Text_Placement_Alt_Vertical","icon":"infoPosition_above"}],"type":"OPTIONS","default":"OVERLAY"},"controllers_layoutParams_info_allowTitle":{"key":"controllers_layoutParams_info_allowTitle","title":"Native_ProGallery_Settings_Text_ShowTitle","type":"BOOLEAN","default":false},"controllers_layoutParams_info_allowDescription":{"key":"controllers_layoutParams_info_allowDescription","title":"Native_ProGallery_Settings_Text_ShowDescription","type":"BOOLEAN","default":false},"controllers_layoutParams_info_allowTitleAndDescription":{"key":"controllers_layoutParams_info_allowTitleAndDescription","title":"Native_ProGallery_Settings_Text","type":"CHECKBOX","options":[{"title":"Native_ProGallery_Settings_Text_Title","value":"controllers_layoutParams_info_allowTitle"},{"title":"Native_ProGallery_Settings_Text_Description","value":"controllers_layoutParams_info_allowDescription"}],"controller":"CHECKBOX","default":""},"controllers_layoutParams_info_verticalPadding":{"key":"controllers_layoutParams_info_verticalPadding","title":"Native_ProGallery_Settings_Text_Padding_Vertical","type":"NUMBER","min":0,"max":50,"default":0,"unit":"px"},"controllers_layoutParams_info_horizontalPadding":{"key":"controllers_layoutParams_info_horizontalPadding","title":"Native_ProGallery_Settings_Text_Padding_Horizontal","type":"NUMBER","min":0,"max":50,"default":0,"unit":"px"},"controllers_layoutParams_info_verticalAlignment":{"key":"controllers_layoutParams_info_verticalAlignment","title":"Native_ProGallery_Settings_Text_Alignment_Vertical","type":"OPTIONS","controller":"THUMBNAILS","thumbnailsSize":"SMALL","options":[{"value":"START","title":"Native_ProGallery_Settings_Text_Alignment_Vertical_Top","icon":"vertical_top"},{"value":"CENTER","title":"Native_ProGallery_Settings_Text_Algnment_Vertical_Center","icon":"alignment_center"},{"value":"END","title":"Native_ProGallery_Settings_Text_Algnment_Vertical_Bottom","icon":"vertical_bottom"}],"default":"CENTER"},"controllers_layoutParams_info_horizontalAlignment":{"key":"controllers_layoutParams_info_horizontalAlignment","title":"Native_ProGallery_Settings_Text_Alignment_Horizontal","type":"OPTIONS","controller":"THUMBNAILS","thumbnailsSize":"SMALL","options":[{"value":"START","title":"Native_ProGallery_Settings_Text_Alignment_Horizontal_Left","icon":"horizontal_left"},{"value":"CENTER","title":"Native_ProGallery_Settings_Text_Algnment_Horizontal_Center","icon":"alignment_center"},{"value":"END","title":"Native_ProGallery_Settings_Text_Algnment_Horizontal_Right","icon":"horizontal_right"}],"default":"CENTER"},"layoutParams_info_sizeUnits":{"key":"layoutParams_info_sizeUnits","title":"Native_ProGallery_Settings_Text_Size","options":[{"value":"PIXEL","title":"Native_ProGallery_Settings_Text_Size_Pixels"},{"value":"PERCENT","title":"Native_ProGallery_Settings_Text_Size_Percentage"}],"type":"OPTIONS","default":"PIXEL"},"layoutParams_info_height":{"key":"layoutParams_info_height","title":"Native_ProGallery_Settings_Text_Size_Height_Pixels","type":"NUMBER","min":0,"max":800,"default":200,"unit":"px"},"controllers_layoutParams_info_width_pixel":{"key":"controllers_layoutParams_info_width_pixel","title":"Native_ProGallery_Settings_Text_Size_Width_Pixels","type":"NUMBER","min":0,"max":1000,"default":200,"unit":"px"},"controllers_layoutParams_info_width_percent":{"key":"controllers_layoutParams_info_width_percent","title":"Native_ProGallery_Settings_Text_Size_Width_Percentage","type":"NUMBER","min":0,"max":90,"default":50},"behaviourParams_item_overlay_hoveringBehaviour":{"key":"behaviourParams_item_overlay_hoveringBehaviour","title":"Native_ProGallery_Settings_Text_Overlay","options":[{"value":"APPEARS","title":"Native_ProGallery_Settings_Text_Overlay_Appears"},{"value":"DISAPPEARS","title":"Native_ProGallery_Settings_Text_Overlay_Disappears"},{"value":"NO_CHANGE","title":"Native_ProGallery_Settings_Text_Overlay_Nothing"},{"value":"NEVER_SHOW","title":"Native_ProGallery_Settings_Text_Overlay_Never"}],"type":"OPTIONS","default":"NEVER_SHOW"},"controllers_behaviourParams_item_overlay_overlayType":{"key":"controllers_behaviourParams_item_overlay_overlayType","title":"Native_ProGallery_Settings_FullOrPartialOverlay","options":[{"value":"FULL","title":"Native_ProGallery_Settings_Text_Overlay_Full"},{"value":"PARTIAL","title":"Native_ProGallery_Settings_Text_Overlay_Partial"}],"type":"OPTIONS","default":"FULL"},"behaviourParams_item_overlay_sizeUnits":{"key":"behaviourParams_item_overlay_sizeUnits","title":"Native_ProGallery_Settings_Text_Overlay_Partial_Size_Set","options":[{"value":"PIXEL","title":"Native_ProGallery_Settings_Text_Overlay_Partial_Size_Pixel"},{"value":"PERCENT","title":"Native_ProGallery_Settings_Text_Overlay_Partial_Size_Percentage"}],"type":"OPTIONS","default":"PERCENT"},"controllers_behaviourParams_item_overlay_enabled":{"key":"controllers_behaviourParams_item_overlay_enabled","title":"Native_ProGallery_Layout_Overlay_Header","type":"TOGGLED_SECTION","default":true,"isExperimental":false},"controllers_layoutParams_info_newInfo_external_enabled":{"key":"controllers_layoutParams_info_newInfo_external_enabled","title":"Native_ProGallery_Layout_NewInfoAroundImage","type":"TOGGLED_SECTION","default":true,"isExperimental":false},"controllers_behaviourParams_item_overlay_size_percent":{"key":"controllers_behaviourParams_item_overlay_size_percent","title":"Native_ProGallery_Settings_Text_Overlay_Partial_Set_Percentage","type":"NUMBER","min":0,"max":100,"default":100,"unit":"%"},"controllers_behaviourParams_item_overlay_size_pixel":{"key":"controllers_behaviourParams_item_overlay_size_pixel","title":"Native_ProGallery_Settings_Text_Overlay_Partial_Set_Pixels","type":"NUMBER","min":0,"max":1000,"default":100,"unit":"px"},"behaviourParams_item_overlay_position":{"key":"behaviourParams_item_overlay_position","title":"Native_ProGallery_Settings_Text_Overlay_Partial_Position","options":[{"value":"LEFT","title":"Native_ProGallery_Settings_Text_Overlay_Partial_Position_Left"},{"value":"RIGHT","title":"Native_ProGallery_Settings_Text_Overlay_Partial_Position_Right"},{"value":"BOTTOM","title":"Native_ProGallery_Settings_Text_Overlay_Partial_Position_Bottom"},{"value":"TOP","title":"Native_ProGallery_Settings_Text_Overlay_Partial_Position_Top"},{"value":"CENTERED_VERTICALLY","title":"Native_ProGallery_Settings_Text_Overlay_Partial_Position_Center_Vertical"},{"value":"CENTERED_HORIZONTALLY","title":"Native_ProGallery_Settings_Text_Overlay_Partial_Position_Center_Horizontal"}],"type":"OPTIONS","default":"BOTTOM"},"behaviourParams_item_overlay_padding":{"key":"behaviourParams_item_overlay_padding","title":"Native_ProGallery_Settings_Text_Overlay_Partial_Padding","type":"NUMBER","min":0,"max":200,"default":0,"unit":"px"},"behaviourParams_item_overlay_hoverAnimation":{"key":"behaviourParams_item_overlay_hoverAnimation","title":"Native_ProGallery_Settings_Text_Overlay_Hover","controller":"THUMBNAILS","options":[{"value":"NO_EFFECT","title":"Native_ProGallery_Settings_Text_Overlay_Hover_Nothing","emptyState":true},{"value":"EXPAND","title":"Native_ProGallery_Settings_Text_Overlay_Hover_Expand","icon":"overlay_expand"},{"value":"SLIDE_UP","title":"Native_ProGallery_Settings_Text_Overlay_Hover_Slide_Up","icon":"overlay_slideUp"},{"value":"SLIDE_RIGHT","title":"Native_ProGallery_Settings_Text_Overlay_Hover_Slide_Right","icon":"overlay_slideRight"},{"value":"SLIDE_DOWN","title":"Native_ProGallery_Settings_Text_Overlay_Hover_Slide_Down","icon":"overlay_slideDown"},{"value":"SLIDE_LEFT","title":"Native_ProGallery_Settings_Text_Overlay_Hover_Slide_Left","icon":"overlay_slideLeft"}],"type":"OPTIONS","default":"NO_EFFECT"},"controllers_behaviourParams_item_overlay_hoverAnimationBehavior":{"key":"controllers_behaviourParams_item_overlay_hoverAnimationBehavior","title":"Native_ProGallery_Animation_HoverOverlay_Title","description":"Native_ProGallery_Animation_HoverOverlay_Tooltip","options":[{"value":"APPEARS","title":"Native_ProGallery_Animation_HoverOverlay_Option1"},{"value":"DISAPPEARS","title":"Native_ProGallery_Animation_HoverOverlay_Option2"}],"type":"OPTIONS","default":"APPEARS"},"behaviourParams_item_threeDimensionalScene_playTrigger":{"key":"behaviourParams_item_threeDimensionalScene_playTrigger","title":"Native_ProGallery_Settings_3D_Play_Trigger","options":[{"value":"HOVER","title":"Native_ProGallery_Settings_3D_Play_Trigger_Hover"},{"value":"CLICK","title":"Native_ProGallery_Settings_3D_Play_Trigger_Click"},{"value":"AUTO","title":"Native_ProGallery_Settings_3D_Play_Trigger_Auto"}],"type":"OPTIONS","default":"AUTO"},"controllers_experimental_useNewInfo":{"isExperimental":true,"key":"controllers_experimental_useNewInfo","title":"Native_ProGallery_Layout_UseNewInfo","type":"OPTIONS","default":"false","thumbnailsSize":"SMALL","options":[{"value":"false","title":"Native_ProGallery_Layout_UseNewInfoNo"},{"value":"true","title":"Native_ProGallery_Layout_UseNewInfoYes"}]},"controllers_stylableOptions_arrowContainer":{"key":"controllers_stylableOptions_arrowContainer","type":"STYLABLE","features":["FILL","BORDERS","SHADOW","CORNERS"],"selector":".root::gallery-arrows","title":"Native_ProGallery_Design_Option9_Arrow_Container"},"controllers_stylableOptions_arrowContainerHover":{"key":"controllers_stylableOptions_arrowContainerHover","type":"STYLABLE","features":["FILL","BORDERS","SHADOW","CORNERS"],"selector":".root::gallery-arrows:hover","title":"StylablePanel_Design_State_Dropdown_Hover"},"controllers_stylableOptions_arrowIcon":{"key":"controllers_stylableOptions_arrowIcon","type":"STYLABLE","features":["ICON"],"selector":".root::gallery-arrows::gallery-arrows-icon","title":"Native_ProGallery_Design_Option8_Arrow_Icon"},"controllers_stylableOptions_arrowIconHover":{"key":"controllers_stylableOptions_arrowIconHover","type":"STYLABLE","features":["ICON"],"selector":".root::gallery-arrows:hover::gallery-arrows-icon","title":"StylablePanel_Design_State_Dropdown_Hover"},"controllers_showManageMedia":{"key":"controllers_showManageMedia","title":"NOT SUPPORTED Force show manage media","type":"BOOLEAN","default":false,"description":"this is to allow specific galleries to show the manage media"}}'),Nr=JSON.parse('{"$schema":"./ProGallery.options.schema.json","controllers_layoutParams_structure_galleryRatio_method":{"key":"controllers_layoutParams_structure_galleryRatio_method","title":"Native_ProGallery_GalleryHeight_Label","type":"OPTIONS","controller":"RADIO","thumbnailsSize":"MEDIUM","default":"MANUAL","options":[{"value":"MANUAL","title":"Native_ProGallery_GalleryHeight_Option1"},{"value":"FIXED","title":"Native_ProGallery_GalleryHeight_Option2"}],"description":"Native_ProGallery_GalleryRatio_Tooltip"},"behaviourParams_gallery_blockContextMenu":{"key":"behaviourParams_gallery_blockContextMenu","title":"Native_ProGallery_Settings_MediaProtection_Label","type":"BOOLEAN","default":true,"description":"Native_ProGallery_Settings_MediaProtection_Tooltip"},"controllers_layoutParams_structure_galleryRatio_value":{"key":"controllers_layoutParams_structure_galleryRatio_value","title":"Native_ProGallery_GalleryRatio","type":"OPTIONS","controller":"THUMBNAILS","default":1,"thumbnailsSize":"SMALL","options":[{"value":3,"title":"Native_ProGallery_Layout_CropRatio_List_Item0","icon":"imageRatio_3_1"},{"value":1.7777777777777777,"title":"Native_ProGallery_Layout_CropRatio_List_Item1","icon":"imageRatio_16_9"},{"value":1.3333333333333333,"title":"Native_ProGallery_Layout_CropRatio_List_Item2","icon":"imageRatio_4_3"},{"value":1,"title":"Native_ProGallery_Layout_CropRatio_List_Item3","icon":"imageRatio_1_1"},{"value":0.75,"title":"Native_ProGallery_Layout_CropRatio_List_Item4","icon":"imageRatio_3_4"}]},"layoutParams_structure_galleryLayout":{"key":"layoutParams_structure_galleryLayout","title":"ProGallery_Layout_Tab_Custom_Label","noBottomDivider":true,"type":"OPTIONS","controller":"THUMBNAILS","options":[{"value":2,"title":"ProGallery_Layout_Layouts_Type3","icon":"layouts_grid"},{"value":1,"title":"ProGallery_Layout_Layouts_Type13","icon":"layouts_masonry"},{"value":0,"title":"ProGallery_Layout_Layouts_Type12","icon":"layouts_collage"},{"value":4,"title":"ProGallery_Layout_Layouts_Type8","icon":"layouts_slider"},{"value":5,"title":"ProGallery_Layout_Layouts_Type9","icon":"layouts_slideshow"},{"value":3,"title":"ProGallery_Layout_Layouts_Type7","icon":"layouts_thumbnail"},{"value":10,"title":"ProGallery_Layout_Layouts_Type14","icon":"layouts_bricks"},{"value":6,"title":"ProGallery_Layout_Layouts_Type10","icon":"layouts_strip"},{"value":7,"title":"ProGallery_Layout_Layouts_Type6","icon":"layouts_column"},{"value":11,"title":"ProGallery_Layout_Layouts_Type15","icon":"layouts_mix"},{"value":12,"title":"ProGallery_Layout_Layouts_Type16","icon":"layouts_alternate"}],"default":0},"layoutParams_structure_scrollDirection":{"key":"layoutParams_structure_scrollDirection","title":"Native_ProGallery_Layout_Orientation_Label","type":"OPTIONS","controller":"RADIO","default":"VERTICAL","options":[{"value":"VERTICAL","title":"ProGallery_Layout_DisplaySection_Option1"},{"value":"HORIZONTAL","title":"ProGallery_Layout_DisplaySection_Option2"}]},"controllers_layoutParams_structure_imageWidth_method":{"key":"controllers_layoutParams_structure_imageWidth_method","title":"Native_ProGallery_Layout_GalleryWidth_Label","type":"OPTIONS","controller":"RADIO","thumbnailsSize":"MEDIUM","default":"FIXED","options":[{"value":"RESPONSIVE","title":"Native_ProGallery_Layout_GalleryWidth_Responsive"},{"value":"FIXED","title":"Native_ProGallery_Layout_GalleryWidth_Fixed"}]},"controllers_layoutParams_structure_numberOfDisplayedItems":{"key":"controllers_layoutParams_structure_numberOfDisplayedItems","title":"Native_ProGallery_Layout_GalleryWidth_Responsive_Number","default":3,"max":10,"min":1,"type":"NUMBER"},"layoutParams_structure_layoutOrientation":{"key":"layoutParams_structure_layoutOrientation","controller":"THUMBNAILS","title":"ProGallery_Layout_DisplaySection_Orientation_SubHeader_New","options":[{"value":"VERTICAL","title":"ProGallery_Layout_DisplaySection_Orientation_Option1_New","icon":"galleryOrientation_columns"},{"value":"HORIZONTAL","title":"ProGallery_Layout_DisplaySection_Orientation_Option2_New","icon":"galleryOrientation_rows"}],"type":"OPTIONS","thumbnailsSize":"MEDIUM","default":"VERTICAL"},"behaviourParams_gallery_layoutDirection":{"key":"behaviourParams_gallery_layoutDirection","title":"ProGallery_Layout_Layout_Direction_Label","controller":"RADIO","type":"OPTIONS","default":"LEFT_TO_RIGHT","description":"ProGallery_Layout_Layout_Direction_Tooltip","options":[{"value":"LEFT_TO_RIGHT","title":"ProGallery_Layout_Layout_Direction_LTR"},{"value":"RIGHT_TO_LEFT","title":"ProGallery_Layout_Layout_Direction_RTL"}]},"layoutParams_structure_itemSpacing":{"key":"layoutParams_structure_itemSpacing","title":"ProGallery_Layout_Spacing","type":"NUMBER","min":0,"max":300,"step":1,"default":10,"unit":"px"},"layoutParams_structure_numberOfGridRows":{"key":"layoutParams_structure_numberOfGridRows","title":"ProGallery_Layouts_Columns_Column_Label","default":1,"max":3,"min":1,"type":"NUMBER"},"layoutParams_structure_numberOfColumns":{"key":"layoutParams_structure_numberOfColumns","title":"Native_ProGallery_Layout_Images_Per_Row","default":3,"max":10,"min":1,"type":"NUMBER"},"layoutParams_groups_density":{"key":"layoutParams_groups_density","title":"ProGallery_Layout_CollageDens_Label","type":"FLOAT","default":0.8,"min":0,"max":1,"step":0.1,"unit":"%"},"layoutParams_targetItemSize_value":{"key":"layoutParams_targetItemSize_value","title":"ProGallery_Layout_Image_Size","type":"NUMBER","default":48,"min":1,"max":100,"step":1,"unit":"px"},"layoutParams_crop_method":{"key":"layoutParams_crop_method","title":"ProGallery_Layout_Thumbnail_Resize_New","type":"OPTIONS","controller":"THUMBNAILS","thumbnailsSize":"MEDIUM","default":"FILL","options":[{"value":"FILL","title":"ProGallery_Layout_Thumbnail_Crop","icon":"thumbnailResize_crop"},{"value":"FIT","title":"ProGallery_Layout_Thumbnail_Fit","icon":"thumbnailResize_fit"}]},"layoutParams_crop_ratios":{"key":"layoutParams_crop_ratios","type":"OPTIONS","controller":"THUMBNAILS","title":"ProGallery_Layouts_Slider_ImageRatio_Label","default":1,"thumbnailsSize":"SMALL","options":[{"value":1.7777777777777777,"title":"Native_ProGallery_Layout_CropRatio_List_Item1","icon":"imageRatio_16_9"},{"value":1.3333333333333333,"title":"Native_ProGallery_Layout_CropRatio_List_Item2","icon":"imageRatio_4_3"},{"value":1,"title":"Native_ProGallery_Layout_CropRatio_List_Item3","icon":"imageRatio_1_1"},{"value":0.75,"title":"Native_ProGallery_Layout_CropRatio_List_Item4","icon":"imageRatio_3_4"},{"value":0.5625,"title":"Native_ProGallery_Layout_CropRatio_List_Item5","icon":"imageRatio_9_16"}]},"layoutParams_structure_responsiveMode":{"key":"layoutParams_structure_responsiveMode","title":"Native_ProGallery_Layout_ResponsiveType_New","type":"OPTIONS","controller":"RADIO","default":"FIT_TO_SCREEN","options":[{"value":"FIT_TO_SCREEN","title":"ProGallery_Layouts_Grid_Responsive_Option1"},{"value":"SET_ITEMS_PER_ROW","title":"ProGallery_Layouts_Grid_Responsive_Option2_New"}]},"layoutParams_thumbnails_alignment":{"key":"layoutParams_thumbnails_alignment","title":"ProGallery_Layout_Layouts_Thumbnails_Placement_Label","type":"OPTIONS","controller":"THUMBNAILS","thumbnailsSize":"MEDIUM","options":[{"value":"BOTTOM","title":"Native_ProGallery_Layout_ThumbnailPlacement_List_Item1","icon":"placement_down"},{"value":"TOP","title":"Native_ProGallery_Layout_ThumbnailPlacement_List_Item2","icon":"placement_up"},{"value":"RIGHT","title":"Native_ProGallery_Layout_ThumbnailPlacement_List_Item3","icon":"placement_right"},{"value":"LEFT","title":"Native_ProGallery_Layout_ThumbnailPlacemento_List_Item4","icon":"placement_left"}],"default":"BOTTOM"},"layoutParams_thumbnails_size":{"key":"layoutParams_thumbnails_size","title":"ProGallery_Layout_Thumbnail_Size","type":"NUMBER","default":120,"min":30,"max":300,"unit":"px"},"layoutParams_thumbnails_spacing":{"key":"layoutParams_thumbnails_spacing","title":"ProGallery_Layout_Layouts_Thumbnails_Spacing_Label","type":"NUMBER","default":4,"min":0,"max":30,"unit":"px"},"controllers_layoutParams_thumbnails_marginToGallery":{"key":"controllers_layoutParams_thumbnails_marginToGallery","title":"ProGallery_Layout_Layouts_Thumbnails_marginToGallery_Label","description":"ProGallery_Layout_marginToGallery_Tooltip","type":"NUMBER","default":8,"min":0,"max":400},"behaviourParams_gallery_vertical_loadMore_enable":{"key":"behaviourParams_gallery_vertical_loadMore_enable","title":"ProGallery_Layout_LoadMore_Section_Label","type":"BOOLEAN","default":false},"behaviourParams_gallery_vertical_loadMore_text":{"key":"behaviourParams_gallery_vertical_loadMore_text","title":"ProGallery_Layout_LoadMore_Button_Title","type":"TEXT","default":"Load More"},"behaviourParams_gallery_horizontal_navigationDuration":{"key":"behaviourParams_gallery_horizontal_navigationDuration","title":"ProGallery_Settings_Design_Scroll_Duration_Title_New","type":"NUMBER","default":800,"min":100,"max":1000,"step":100},"behaviourParams_gallery_horizontal_loop":{"key":"behaviourParams_gallery_horizontal_loop","title":"ProGallery_Expand_Loop_Label","description":"ProGallery_Expand_Loop_Tooltip","type":"BOOLEAN","default":false},"behaviourParams_gallery_horizontal_autoSlide_interval":{"key":"behaviourParams_gallery_horizontal_autoSlide_interval","title":"ProGallery_Layout_SlideshowSection_Interval_New","min":2,"max":30,"type":"NUMBER","default":4},"behaviourParams_gallery_horizontal_autoSlide_speed":{"key":"behaviourParams_gallery_horizontal_autoSlide_speed","title":"ProGallery_Layout_SlideshowSection_Layout_Speed_New","min":1,"max":500,"type":"NUMBER","default":50},"behaviourParams_gallery_horizontal_autoSlide_pauseOnHover":{"key":"behaviourParams_gallery_horizontal_autoSlide_pauseOnHover","title":"ProGallery_Layout_SlideshowSection_Pause_On_Hover","type":"BOOLEAN","default":true},"layoutParams_navigationArrows_enable":{"key":"layoutParams_navigationArrows_enable","title":"ProGallery_Design_Navigation_Arrows_Toggle","type":"BOOLEAN","default":true},"layoutParams_navigationArrows_size":{"key":"layoutParams_navigationArrows_size","title":"ProGallery_Design_Arrows_Size","type":"NUMBER","min":8,"max":150,"default":23,"unit":"px"},"layoutParams_navigationArrows_position":{"key":"layoutParams_navigationArrows_position","title":"ProGallery_Design_Arrows_Position_Title","type":"OPTIONS","controller":"RADIO","default":"ON_GALLERY","options":[{"value":"ON_GALLERY","title":"ProGallery_Design_Arrows_Position_On_Gallery"},{"value":"OUTSIDE_GALLERY","title":"ProGallery_Design_Arrows_Position_Outside"},{"value":"MOUSE_CURSOR","title":"Native_ProGallery_Layout_Arrows_Position_Cursor"}]},"layoutParams_navigationArrows_container_type":{"key":"layoutParams_navigationArrows_container_type","title":"Native_ProGallery_Design_Arrows_Container_Type","type":"OPTIONS","default":"NONE","options":[{"value":"NONE","title":"Native_ProGallery_Design_Arrows_Container_None"},{"value":"BOX","title":"Native_ProGallery_Design_Arrows_Container_Box"}]},"layoutParams_navigationArrows_mouseCursorContainerMaxWidth":{"key":"layoutParams_navigationArrows_mouseCursorContainerMaxWidth","type":"OPTIONS","title":"Native_ProGallery_Layout_Arrows_Position_Cursor_Label","description":"Native_ProGallery_Layout_Arrows_Position_Cursor_Tooltip","controller":"THUMBNAILS","thumbnailsSize":"LARGE","default":"100","options":[{"value":"100","title":"Native_ProGallery_Layout_Arrows_Position_Cursor_EntireGallery","icon":"cursor_full_gallery"},{"value":"30","title":"Native_ProGallery_Layout_Arrows_Position_Cursor_GalleryEdges","icon":"cursor_edges_gallery"}]},"layoutParams_navigationArrows_verticalAlignment":{"key":"layoutParams_navigationArrows_verticalAlignment","title":"ProGallery_settings_design_verticalposition","type":"OPTIONS","default":"ITEM_CENTER","options":[{"value":"ITEM_CENTER","title":"ProGallery_settings_design_verticalposition_center_gallery"},{"value":"IMAGE_CENTER","title":"ProGallery_settings_design_verticalposition_center_image"},{"value":"INFO_CENTER","title":"ProGallery_settings_design_verticalposition_center_text"}]},"behaviourParams_item_content_hoverAnimation":{"key":"behaviourParams_item_content_hoverAnimation","title":"ProGallery_Design_Image_Hover_Animation_Label","type":"OPTIONS","controller":"THUMBNAILS","default":"NO_EFFECT","options":[{"value":"NO_EFFECT","title":"ProGallery_Design_Image_Hover_Animation_NoEffect","emptyState":true},{"value":"ZOOM_IN","title":"ProGallery_Design_Image_Hover_Animation_ZoomIn","icon":"hover_zoomIn"},{"value":"BLUR","title":"ProGallery_Design_Image_Hover_Animation_Blur","icon":"hover_blur"},{"value":"GRAYSCALE","title":"ProGallery_Design_Image_Hover_Animation_Grayscale","icon":"hover_grayscale"},{"value":"SHRINK","title":"ProGallery_Design_Image_Hover_Animation_Shrink","icon":"hover_shrink"},{"value":"INVERT","title":"ProGallery_Design_Image_Hover_Animation_Invert","icon":"hover_invert"},{"value":"COLOR_IN","title":"ProGallery_Design_Image_Hover_Animation_ColorIn","icon":"hover_color"},{"value":"DARKENED","title":"ProGallery_Design_Image_Hover_Animation_Darkened","icon":"hover_darken"},{"value":"MAIN_COLOR","title":"ProGallery_Design_Image_Hover_Animation_MainColor","icon":"hover_maincolor"}],"description":"ProGallery_Design_Image_Hover_Animation_Title"},"behaviourParams_item_content_loader":{"key":"behaviourParams_item_content_loader","title":"ProGallery_Settings_Image_Loading_Mode","options":[{"value":"BLUR","title":"ProGallery_Settings_Image_Loading_Mode_Blur"},{"value":"MAIN_COLOR","title":"ProGallery_Settings_Image_Loading_Mode_Color_Main_Color"}],"type":"OPTIONS","controller":"RADIO","default":"MAIN_COLOR"},"behaviourParams_item_content_placementAnimation":{"key":"behaviourParams_item_content_placementAnimation","title":"Image Placement Animation","type":"OPTIONS","default":"NO_EFFECT","options":[{"value":"NO_EFFECT","title":"No Effect"},{"value":"SLIDE","title":"Slide"}]},"behaviourParams_gallery_scrollAnimation":{"key":"behaviourParams_gallery_scrollAnimation","title":"ProGallery_Design_Scroll_Animation_Label","description":"ProGallery_Design_Scroll_Animation_TOOLTIP","controller":"THUMBNAILS","options":[{"value":"NO_EFFECT","title":"ProGallery_Design_Scroll_Animation_NoEffect","emptyState":true},{"value":"FADE_IN","title":"ProGallery_Design_Scroll_Animation_FadeIn","icon":"scroll_fadeIn"},{"value":"GRAYSCALE","title":"ProGallery_Design_Scroll_Animation_Grayscale","icon":"scroll_grayscale"},{"value":"SLIDE_UP","title":"ProGallery_Design_Scroll_Animation_SlideUp","icon":"scroll_slideUp"},{"value":"SLIDE_UP","title":"ProGallery_Design_Scroll_Animation_SlideIn","icon":"scroll_slideIn","id":"SLIDE_IN"},{"value":"EXPAND","title":"ProGallery_Design_Scroll_Animation_Expand","icon":"scroll_expand"},{"value":"SHRINK","title":"ProGallery_Design_Scroll_Animation_Shrink","icon":"scroll_shrink"},{"value":"ZOOM_OUT","title":"ProGallery_Design_Scroll_Animation_ZoomOut","icon":"scroll_zoomOut"},{"value":"ONE_COLOR","title":"ProGallery_Design_Scroll_Animation_OneColor","icon":"scroll_oneColor"}],"type":"OPTIONS","default":"NO_EFFECT"},"behaviourParams_gallery_horizontal_slideAnimation":{"key":"behaviourParams_gallery_horizontal_slideAnimation","title":"ProGallery_Design_Slide_Animation_Label","type":"OPTIONS","default":"SCROLL","controller":"THUMBNAILS","options":[{"value":"SCROLL","title":"ProGallery_Design_Slide_Animation_Scroll","icon":"slide_scroll"},{"value":"FADE","title":"ProGallery_Design_Slide_Animation_Fade","icon":"slide_fade"},{"value":"DECK","title":"ProGallery_Design_Slide_Animation_Stack","icon":"slide_stack"}],"description":"ProGallery_Design_Slide_Animation_Title"},"behaviourParams_item_video_enablePlayButton":{"key":"behaviourParams_item_video_enablePlayButton","title":"ProGallery_Settings_Show_Play_Button_Label","type":"BOOLEAN","default":true},"behaviourParams_item_video_playTrigger":{"key":"behaviourParams_item_video_playTrigger","title":"ProGallery_Settings_Play_Label","options":[{"value":"HOVER","title":"ProGallery_Settings_Hover_Label"},{"value":"AUTO","title":"ProGallery_Settings_Auto_Label"},{"value":"CLICK","title":"ProGallery_Settings_Click_Label"}],"type":"OPTIONS","default":"HOVER"},"behaviourParams_item_video_speed":{"key":"behaviourParams_item_video_speed","title":"ProGallery_Settings_Playback_Label","type":"OPTIONS","options":[{"value":0.25,"title":"ProGallery_Settings_Playback_25"},{"value":0.5,"title":"ProGallery_Settings_Playback_50"},{"value":0.75,"title":"ProGallery_Settings_Playback_75"},{"value":1,"title":"ProGallery_Settings_Playback_100"},{"value":1.25,"title":"ProGallery_Settings_Playback_125"},{"value":1.5,"title":"ProGallery_Settings_Playback_150"},{"value":1.75,"title":"ProGallery_Settings_Playback_175"},{"value":2,"title":"ProGallery_Settings_Playback_200"}],"default":1},"controllers_optionsMap_behaviourParams_item_video_volume":{"key":"controllers_optionsMap_behaviourParams_item_video_volume","title":"ProGallery_Settings_Sound_Label","type":"BOOLEAN","default":false},"behaviourParams_item_video_loop":{"key":"behaviourParams_item_video_loop","title":"ProGallery_Settings_Loop_Label","type":"BOOLEAN","default":true,"noBottomDivider":true},"behaviourParams_item_clickAction":{"key":"behaviourParams_item_clickAction","title":"ProGallery_Settings_ClickOptions_Label","options":[{"value":"EXPAND","title":"ProGallery_Settings_ClickOptions_Expand"},{"value":"FULLSCREEN","title":"ProGallery_Settings_ClickOptions_Fullscreen"},{"value":"LINK","title":"ProGallery_Settings_ClickOptions_Link"},{"value":"NOTHING","title":"ProGallery_Settings_ClickOptions_Nothing"},{"value":"MAGNIFY","title":"ProGallery_Expand_Viewing_Settings_Magnifying"}],"type":"OPTIONS","default":"NOTHING","isRelevantPlaceholder":{"message":"Native_ProGallery_Settings_ClickOptions_Disabled"}},"behaviourParams_item_content_magnificationValue":{"key":"behaviourParams_item_content_magnificationValue","title":"ProGallery_Expand_Viewing_Settings_Magnifying_Size","type":"FLOAT","default":2,"min":1.5,"max":5,"step":0.5},"layoutParams_navigationArrows_padding":{"key":"layoutParams_navigationArrows_padding","title":"ProGallery_settings_design_Horizontal_padding","type":"NUMBER","min":0,"max":100,"default":23,"unit":"px"},"behaviourParams_gallery_vertical_loadMore_amount":{"key":"behaviourParams_gallery_vertical_loadMore_amount","title":"ProGallery_Layout_LoadMore_Amount","type":"OPTIONS","controller":"RADIO","default":"ALL","options":[{"value":"PARTIAL","title":"ProGallery_Layout_LoadMore_Amount_Partial"},{"value":"ALL","title":"ProGallery_Layout_LoadMore_Amount_All"}]},"behaviourParams_gallery_horizontal_autoSlide_behaviour":{"key":"behaviourParams_gallery_horizontal_autoSlide_behaviour","title":"ProGallery_Layout_SlideshowSection_Slide_Automatically","type":"OPTIONS","default":"OFF","options":[{"value":"OFF","title":"Native_ProGallery_Layout_Slideshow_List_Off"},{"value":"INTERVAL","title":"ProGallery_Layout_SlideshowSection_Interval_Header"},{"value":"CONTINUOUS","title":"ProGallery_Layout_SlideshowSection_Continuous_Header"}]},"behaviourParams_gallery_horizontal_slideTransition":{"key":"behaviourParams_gallery_horizontal_slideTransition","title":"ProGallery_Settings_Design_Slide_Transition_Title","options":[{"value":"linear","title":"ProGallery_Settings_Design_Slide_Transition_Linear"},{"value":"cubic-bezier(0.46,0.1,0.25,1)","title":"ProGallery_Settings_Design_Slide_Transition_Ease_In_Out"},{"value":"cubic-bezier(0.86,0,0.5,1)","title":"ProGallery_Settings_Design_Slide_Transition_Ease_In"},{"value":"cubic-bezier(0.31,1.17,0.58,1.07)","title":"ProGallery_Settings_Design_Slide_Transition_Ease_Out"},{"value":"cubic-bezier(0.49,-0.12,0.49,0.04)","title":"ProGallery_Settings_Design_Slide_Transition_Bounce_In"},{"value":"cubic-bezier(0.58,1.65,0.29,0.95)","title":"ProGallery_Settings_Design_Slide_Transition_Bounce_Out"},{"value":"cubic-bezier(0.6,-0.36,0.41,1.23)","title":"ProGallery_Settings_Design_Slide_Transition_Bounce_In_Out"},{"value":"cubic-bezier(0.86,0,0.07,1)","title":"ProGallery_Settings_Design_Slide_Transition_Expo"}],"type":"OPTIONS","default":"cubic-bezier(0.46,0.1,0.25,1)"},"controllers_layoutParams_external_info_placement":{"key":"controllers_layoutParams_external_info_placement","title":"Native_ProGallery_Settings_Text_Placement","controller":"THUMBNAILS","options":[{"value":"BELOW","title":"Native_ProGallery_Settings_Text_Placement_Below","icon":"infoPosition_below"},{"value":"ABOVE","title":"Native_ProGallery_Settings_Text_Placement_Above","icon":"infoPosition_above"},{"value":"RIGHT","title":"Native_ProGallery_Settings_Text_Placement_Right","icon":"infoPosition_right"},{"value":"LEFT","title":"Native_ProGallery_Settings_Text_Placement_Left","icon":"infoPosition_left"},{"value":"ALTERNATE_HORIZONTALLY","title":"Native_ProGallery_Settings_Text_Placement_Alt_Horizontal","icon":"infoPosition_alternateHorizontally"},{"value":"ALTERNATE_VERTICALLY","title":"Native_ProGallery_Settings_Text_Placement_Alt_Vertical","icon":"infoPosition_alternateVertically"}],"type":"OPTIONS","default":"BELOW"},"controllers_layoutParams_external_info_SocialButtonsHorizontalAlignment":{"key":"controllers_layoutParams_external_info_SocialButtonsHorizontalAlignment","title":"ProGallery_NewInfo_Icons_Ext_Alignment_Label","options":[{"value":"LEFT","title":"ProGallery_NewInfo_Icons_Ext_Alignment_Left","icon":"horizontal_left"},{"value":"CENTER","title":"ProGallery_NewInfo_Icons_Ext_Alignment_Center","icon":"alignment_center"},{"value":"RIGHT","title":"ProGallery_NewInfo_Icons_Ext_Alignment_Right","icon":"horizontal_right"}],"type":"OPTIONS","default":"LEFT","thumbnailsSize":"SMALL","controller":"THUMBNAILS"},"controllers_layoutParams_internal_info_SocialButtonsHorizontalAlignment":{"key":"controllers_layoutParams_internal_info_SocialButtonsHorizontalAlignment","title":"ProGallery_NewInfo_Icons_Alignment_Label","options":[{"value":"LEFT","title":"ProGallery_NewInfo_Icons_Alignment_Left","icon":"horizontal_left"},{"value":"CENTER","title":"ProGallery_NewInfo_Icons_Alignment_Center","icon":"alignment_center"},{"value":"RIGHT","title":"ProGallery_NewInfo_Icons_Alignment_Right","icon":"horizontal_right"}],"type":"OPTIONS","default":"LEFT","thumbnailsSize":"SMALL","controller":"THUMBNAILS"},"layoutParams_info_placement":{"key":"layoutParams_info_placement","title":"Native_ProGallery_Settings_Text_Placement","controller":"THUMBNAILS","options":[{"title":"","value":"BELOW","icon":"infoPosition_below"},{"title":"","value":"ABOVE","icon":"infoPosition_above"},{"title":"","value":"RIGHT","icon":"infoPosition_right"},{"title":"","value":"LEFT","icon":"infoPosition_left"},{"title":"","value":"OVERLAY","icon":"infoPosition_onImage"},{"title":"","value":"ALTERNATE_HORIZONTALLY","icon":"infoPosition_alternateHorizontally"},{"title":"","value":"ALTERNATE_VERTICALLY","icon":"infoPosition_alternateVertically"}],"type":"OPTIONS","default":"OVERLAY"},"controllers_layoutParams_info_allowTitle":{"key":"controllers_layoutParams_info_allowTitle","title":"Native_ProGallery_Settings_Text_ShowTitle","type":"BOOLEAN","default":false},"controllers_layoutParams_info_allowDescription":{"key":"controllers_layoutParams_info_allowDescription","title":"Native_ProGallery_Settings_Text_ShowDescription","type":"BOOLEAN","default":false},"controllers_layoutParams_info_allowTitleAndDescription":{"key":"controllers_layoutParams_info_allowTitleAndDescription","title":"Native_ProGallery_Settings_Text","type":"CHECKBOX","options":[{"title":"Native_ProGallery_Settings_Text_Title","value":"controllers_layoutParams_info_allowTitle"},{"title":"Native_ProGallery_Settings_Text_Description","value":"controllers_layoutParams_info_allowDescription"}],"controller":"CHECKBOX","default":""},"controllers_layoutParams_info_verticalPadding":{"key":"controllers_layoutParams_info_verticalPadding","title":"Native_ProGallery_Settings_Text_Padding_Vertical","type":"NUMBER","min":0,"max":50,"default":0,"unit":"px"},"controllers_layoutParams_info_horizontalPadding":{"key":"controllers_layoutParams_info_horizontalPadding","title":"Native_ProGallery_Settings_Text_Padding_Horizontal","type":"NUMBER","min":0,"max":50,"default":0,"unit":"px"},"controllers_layoutParams_info_verticalAlignment":{"key":"controllers_layoutParams_info_verticalAlignment","title":"Native_ProGallery_Settings_Text_Alignment_Vertical","type":"OPTIONS","controller":"THUMBNAILS","thumbnailsSize":"SMALL","options":[{"title":"","value":"START","icon":"vertical_top"},{"title":"","value":"CENTER","icon":"vertical_center"},{"title":"","value":"END","icon":"vertical_bottom"}],"default":"CENTER"},"controllers_layoutParams_info_horizontalAlignment":{"key":"controllers_layoutParams_info_horizontalAlignment","title":"Native_ProGallery_Settings_Text_Alignment_Horizontal","type":"OPTIONS","controller":"THUMBNAILS","thumbnailsSize":"SMALL","options":[{"title":"","value":"START","icon":"horizontal_left"},{"title":"","value":"CENTER","icon":"alignment_center"},{"title":"","value":"END","icon":"horizontal_right"}],"default":"CENTER"},"layoutParams_info_sizeUnits":{"key":"layoutParams_info_sizeUnits","title":"Native_ProGallery_Settings_TextArea_Size","options":[{"value":"PERCENT","title":"Native_ProGallery_Settings_Text_Size_Percentage"},{"value":"PIXEL","title":"Native_ProGallery_Settings_Text_Size_Pixels"}],"type":"OPTIONS","controller":"RADIO","default":"PIXEL"},"layoutParams_info_height":{"key":"layoutParams_info_height","title":"Native_ProGallery_Settings_TextArea_Size_Height","type":"NUMBER","min":0,"max":800,"default":200,"unit":"px"},"controllers_layoutParams_info_width_pixel":{"key":"controllers_layoutParams_info_width_pixel","title":"Native_ProGallery_Settings_TextArea_Size_Width","type":"NUMBER","min":0,"max":1000,"default":200,"unit":"px"},"controllers_layoutParams_info_width_percent":{"key":"controllers_layoutParams_info_width_percent","title":"Native_ProGallery_Settings_TextArea_Size_Width","type":"NUMBER","min":0,"max":90,"default":50,"unit":"%"},"behaviourParams_item_overlay_hoveringBehaviour":{"key":"behaviourParams_item_overlay_hoveringBehaviour","title":"Native_ProGallery_Settings_Text_Overlay_New","options":[{"value":"APPEARS","title":"Native_ProGallery_Settings_Text_Overlay_Appears"},{"value":"DISAPPEARS","title":"Native_ProGallery_Settings_Text_Overlay_Disappears"},{"value":"NO_CHANGE","title":"Native_ProGallery_Settings_Text_Overlay_AlwaysShow"},{"value":"NEVER_SHOW","title":"Native_ProGallery_Settings_Text_Overlay_NeverShow"}],"type":"OPTIONS","default":"NEVER_SHOW"},"controllers_behaviourParams_item_overlay_overlayType":{"key":"controllers_behaviourParams_item_overlay_overlayType","title":"Native_ProGallery_Settings_FullOrPartialOverlay","options":[{"value":"FULL","title":"Native_ProGallery_Settings_Text_Overlay_Full"},{"value":"PARTIAL","title":"Native_ProGallery_Settings_Text_Overlay_Partial"}],"type":"OPTIONS","default":"FULL"},"behaviourParams_item_overlay_sizeUnits":{"key":"behaviourParams_item_overlay_sizeUnits","title":"Native_ProGallery_Settings_Text_Overlay_Partial_Size_Set","options":[{"value":"PERCENT","title":"Native_ProGallery_Settings_Text_Overlay_Partial_Size_Percentage"},{"value":"PIXEL","title":"Native_ProGallery_Settings_Text_Overlay_Partial_Size_Pixel"}],"type":"OPTIONS","controller":"RADIO","default":"PERCENT","noBottomDivider":true},"controllers_behaviourParams_item_overlay_enabled":{"key":"controllers_behaviourParams_item_overlay_enabled","title":"Native_ProGallery_Layout_Overlay_Header","type":"TOGGLED_SECTION","default":true,"isExperimental":false},"controllers_layoutParams_info_newInfo_external_enabled":{"key":"controllers_layoutParams_info_newInfo_external_enabled","title":"Native_ProGallery_Layout_NewInfoAroundImage","type":"TOGGLED_SECTION","default":true,"isExperimental":false},"controllers_behaviourParams_item_overlay_size_percent":{"key":"controllers_behaviourParams_item_overlay_size_percent","title":"","type":"NUMBER","min":0,"max":100,"default":100,"unit":"%"},"controllers_behaviourParams_item_overlay_size_pixel":{"key":"controllers_behaviourParams_item_overlay_size_pixel","title":"","type":"NUMBER","min":0,"max":1000,"default":100,"unit":"px"},"behaviourParams_item_overlay_position":{"key":"behaviourParams_item_overlay_position","title":"Native_ProGallery_Settings_Text_Overlay_Partial_Position_Label","description":"Native_ProGallery_Settings_Text_Overlay_Tooltip","options":[{"value":"LEFT","title":"Native_ProGallery_Settings_Text_Overlay_Partial_Position_Left"},{"value":"RIGHT","title":"Native_ProGallery_Settings_Text_Overlay_Partial_Position_Right"},{"value":"BOTTOM","title":"Native_ProGallery_Settings_Text_Overlay_Partial_Position_Bottom"},{"value":"TOP","title":"Native_ProGallery_Settings_Text_Overlay_Partial_Position_Top"},{"value":"CENTERED_VERTICALLY","title":"Native_ProGallery_Settings_Text_Overlay_Partial_Position_Center_Vertical"},{"value":"CENTERED_HORIZONTALLY","title":"Native_ProGallery_Settings_Text_Overlay_Partial_Position_Center_Horizontal"}],"type":"OPTIONS","default":"BOTTOM"},"behaviourParams_item_overlay_padding":{"key":"behaviourParams_item_overlay_padding","title":"ProGallery_Settings_Design_Overlay_Padding","type":"NUMBER","min":0,"max":200,"default":0,"unit":"px"},"behaviourParams_item_overlay_hoverAnimation":{"key":"behaviourParams_item_overlay_hoverAnimation","title":"Native_ProGallery_Settings_Text_Overlay_Hover_New","controller":"THUMBNAILS","noBottomDivider":true,"options":[{"value":"NO_EFFECT","title":"Native_ProGallery_Settings_Text_Overlay_Hover_NoEffect","emptyState":true},{"value":"EXPAND","title":"Native_ProGallery_Settings_Text_Overlay_Hover_Expand","icon":"overlay_expand"},{"value":"SLIDE_UP","title":"Native_ProGallery_Settings_Text_Overlay_Hover_Slide_Up","icon":"overlay_slideUp"},{"value":"SLIDE_RIGHT","title":"Native_ProGallery_Settings_Text_Overlay_Hover_Slide_Right","icon":"overlay_slideRight"},{"value":"SLIDE_DOWN","title":"Native_ProGallery_Settings_Text_Overlay_Hover_Slide_Down","icon":"overlay_slideDown"},{"value":"SLIDE_LEFT","title":"Native_ProGallery_Settings_Text_Overlay_Hover_Slide_Left","icon":"overlay_slideLeft"}],"type":"OPTIONS","default":"NO_EFFECT"},"controllers_behaviourParams_item_overlay_hoverAnimationBehavior":{"key":"controllers_behaviourParams_item_overlay_hoverAnimationBehavior","title":"Native_ProGallery_Animation_HoverOverlay_Title","description":"Native_ProGallery_Animation_HoverOverlay_Tooltip","options":[{"value":"APPEARS","title":"Native_ProGallery_Animation_HoverOverlay_Option1"},{"value":"DISAPPEARS","title":"Native_ProGallery_Animation_HoverOverlay_Option2"}],"type":"OPTIONS","default":"APPEARS"},"behaviourParams_item_threeDimensionalScene_playTrigger":{"key":"behaviourParams_item_threeDimensionalScene_playTrigger","title":"Native_ProGallery_Settings_3D_Play_Trigger","options":[{"value":"HOVER","title":"Native_ProGallery_Settings_3D_Play_Trigger_Hover"},{"value":"CLICK","title":"Native_ProGallery_Settings_3D_Play_Trigger_Click"},{"value":"AUTO","title":"Native_ProGallery_Settings_3D_Play_Trigger_Auto"}],"type":"OPTIONS","default":"AUTO"},"controllers_experimental_useNewInfo":{"isExperimental":true,"key":"controllers_experimental_useNewInfo","title":"Native_ProGallery_Layout_UseNewInfo","type":"OPTIONS","default":"false","thumbnailsSize":"SMALL","options":[{"value":"false","title":"Native_ProGallery_Layout_UseNewInfoNo"},{"value":"true","title":"Native_ProGallery_Layout_UseNewInfoYes"}]},"controllers_stylableOptions_arrowContainer":{"key":"controllers_stylableOptions_arrowContainer","type":"STYLABLE","features":["FILL","BORDERS","SHADOW","CORNERS"],"selector":".root::gallery-arrows","title":"Native_ProGallery_Design_Option9_Arrow_Container"},"controllers_stylableOptions_arrowContainerHover":{"key":"controllers_stylableOptions_arrowContainerHover","type":"STYLABLE","features":["FILL","BORDERS","SHADOW","CORNERS"],"selector":".root::gallery-arrows:hover","title":"StylablePanel_Design_State_Dropdown_Hover"},"controllers_stylableOptions_arrowIcon":{"key":"controllers_stylableOptions_arrowIcon","type":"STYLABLE","features":["ICON"],"selector":".root::gallery-arrows::gallery-arrows-icon","title":"Native_ProGallery_Design_Option8_Arrow_Icon"},"controllers_stylableOptions_arrowIconHover":{"key":"controllers_stylableOptions_arrowIconHover","type":"STYLABLE","features":["ICON"],"selector":".root::gallery-arrows:hover::gallery-arrows-icon","title":"StylablePanel_Design_State_Dropdown_Hover"},"controllers_showManageMedia":{"key":"controllers_showManageMedia","title":"NOT SUPPORTED Force show manage media","type":"BOOLEAN","default":false,"description":"this is to allow specific galleries to show the manage media"}}'),xr=JSON.parse('{"$schema":"./ProGallery.options.schema.json","LAYOUT":{"key":"LAYOUT","title":"Native_ProGallery_Layout_ChooseLayout_Header","type":"SECTION"},"IMAGE_DISPLAY":{"key":"IMAGE_DISPLAY","title":"Native_ProGallery_Settings_ImageDisplay_Header","type":"SECTION"},"DESIGN_SETTINGS":{"key":"DESIGN_SETTINGS","title":"Native_ProGallery_Layout_DesignSettings_Header","type":"SECTION"},"SLIDESHOW_SETTINGS":{"key":"SLIDESHOW_SETTINGS","title":"ProGallery_Layout_SlideshowSection_Title","type":"SECTION"},"THUMBNAILS_SETTINGS":{"key":"THUMBNAILS_SETTINGS","title":"Native_ProGallery_Layout_Thumbnails_Header","type":"SECTION"},"INFO_SETTINGS":{"key":"INFO_SETTINGS","title":"Native_ProGallery_Settings_InfoSettings_Header","type":"SECTION"},"ADVANCED":{"key":"ADVANCED","title":"Native_ProGallery_Settings_Advanced_Header","type":"SECTION"},"OVERLAY":{"key":"OVERLAY","title":"Native_ProGallery_Layout_Overlay_Header","type":"SECTION"},"OVERLAY_POSITION":{"key":"OVERLAY_POSITION","title":"Native_ProGallery_Settings_Text_Overlay_Partial_Position","type":"SECTION"},"IMAGE_LOADING":{"key":"IMAGE_LOADING","title":"Native_ProGallery_Settings_ImageLoading_Header","type":"SECTION"},"VIDEO":{"key":"VIDEO","title":"ProGallery_Settings_Video_Label","type":"SECTION"},"MEDIA_PERMISSION":{"key":"MEDIA_PERMISSION","title":"Native_ProGallery_Settings_MediaProtection_Header","type":"SECTION"},"FULLSCREEN_INFO_SETTINGS":{"key":"FULLSCREEN_INFO_SETTINGS","title":"Native_ProGallery_Expand_InfoSettings_Header","type":"SECTION"},"FULLSCREEN_VIEWING_SETTINGS":{"key":"FULLSCREEN_VIEWING_SETTINGS","title":"Native_ProGallery_Expand_ViewingSettings_Header","type":"SECTION"},"FULLSCREEN_BACKGROUND_FILTERS":{"key":"FULLSCREEN_BACKGROUND_FILTER_S","title":"Native_ProGallery_Expand_BackgroundFilters_Header","type":"SECTION"},"ARROWS_DESIGN_SETTINGS":{"key":"ARROWS_DESIGN_SETTINGS","title":"Native_ProGallery_Layout_NavigationArrows_Header","type":"SECTION"},"GALLERY_DESIGN":{"key":"GALLERY_DESIGN","title":"Native_ProGallery_Design_Header_Gallery","type":"SECTION"},"TEXT_ICONS_BUTTONS_DESIGN":{"key":"TEXT_ICONS_BUTTONS_DESIGN","title":"Native_ProGallery_Design_Header_Info","type":"SECTION"},"NAVIGATION_DESIGN":{"key":"NAVIGATION_DESIGN","title":"Native_ProGallery_Design_Header_Navigation","type":"SECTION"},"ANIMATION_HOVER_OVERLY":{"key":"ANIMATION_HOVER_OVERLY","title":"Native_ProGallery_Behaviors_OverlayTextAnimation_Header","type":"SECTION"},"ANIMATION_HOVER_IMAGE":{"key":"ANIMATION_HOVER_IMAGE","title":"Native_ProGallery_Behaviors_ImageAnimation_Header","type":"SECTION"},"ANIMATION_SCROLL_ANIMATION":{"key":"ANIMATION_SCROLL_ANIMATION","title":"Native_ProGallery_Behaviors_SlideAnimation_Header","type":"SECTION"}}'),Dr=JSON.parse('{"controllers_layoutParams_infoElementOptions_external_order":{"key":"controllers_layoutParams_infoElementOptions_external_order","enabledKey":"controllers_layoutParams_infoElementOptions_external_enabled","title":"Around Image","type":"DRAGGABLE","options":[{"type":"section","key":"top","label":"top"},{"type":"section","key":"middle","label":"middle"},{"type":"section","key":"bottom","label":"bottom"},{"type":"item","key":"Title","label":"Title","defaultSection":"top"},{"type":"item","key":"Description","label":"Description","defaultSection":"top"},{"type":"item","key":"CustomButton","label":"CustomButton","defaultSection":"top"},{"type":"item","key":"Social","label":"Social","defaultSection":"bottom"}],"enabledKeyDefualt":"","controller":"DRAGGABLE","default":"top,Title,Description,CustomButton,middle,bottom,Social"},"controllers_layoutParams_infoElementOptions_internal_order":{"key":"controllers_layoutParams_infoElementOptions_internal_order","enabledKey":"controllers_layoutParams_infoElementOptions_internal_enabled","title":"On Image","type":"DRAGGABLE","options":[{"type":"section","key":"top","label":"top"},{"type":"section","key":"middle","label":"middle"},{"type":"section","key":"bottom","label":"bottom"},{"type":"item","key":"Title","label":"Title","defaultSection":"top"},{"type":"item","key":"Description","label":"Description","defaultSection":"top"},{"type":"item","key":"CustomButton","label":"CustomButton","defaultSection":"top"},{"type":"item","key":"Social","label":"Social","defaultSection":"bottom"}],"enabledKeyDefualt":"","controller":"DRAGGABLE","default":"top,Title,Description,CustomButton,middle,bottom,Social"},"controllers_layoutParams_infoElementOptions_external_enabled":{"key":"controllers_layoutParams_infoElementOptions_external_enabled","type":"TEXT","title":"","default":""},"controllers_layoutParams_infoElementOptions_internal_enabled":{"key":"controllers_layoutParams_infoElementOptions_internal_enabled","type":"TEXT","title":"","default":""},"controllers_fullscreen_allowTitleExpand":{"key":"controllers_fullscreen_allowTitleExpand","title":"Native_ProGallery_Expand_InfoSettings_WhatInfo_Title","type":"BOOLEAN","default":true,"noBottomDivider":true,"textLabel":"Native_ProGallery_Expand_InfoSettings_WhatInfo_Label"},"controllers_fullscreen_allowDescriptionExpand":{"key":"controllers_fullscreen_allowDescriptionExpand","title":"Native_ProGallery_Expand_InfoSettings_WhatInfo_Description","type":"BOOLEAN","default":true,"noBottomDivider":true},"controllers_fullscreen_allowLinkExpand":{"key":"controllers_fullscreen_allowLinkExpand","title":"Native_ProGallery_Expand_InfoSettings_WhatInfo_Link","type":"BOOLEAN","default":false},"controllers_fullscreen_whenToShowInfo":{"key":"controllers_fullscreen_whenToShowInfo","title":"Native_ProGallery_Expand_InfoSettings_WhenInfo_Label","type":"OPTIONS","controller":"RADIO","thumbnailsSize":"MEDIUM","default":"ALWAYS","options":[{"value":"ALWAYS","title":"Native_ProGallery_Expand_InfoSettings_WhenInfo_Always"},{"value":"ON_TOGGLE","title":"Native_ProGallery_Expand_InfoSettings_WhenInfo_Icon"}],"description":"Native_ProGallery_Expand_InfoSettings_WhenInfo_Tooltip"},"controllers_fullscreen_expandInfoPosition":{"key":"controllers_fullscreen_expandInfoPosition","title":"Native_ProGallery_Expand_InfoSettings_WhereInfo_Label","type":"OPTIONS","default":"SIDE","options":[{"value":"BOTTOM","title":"Native_ProGallery_Expand_InfoSettings_WhereInfo_Bottom"},{"value":"SIDE","title":"Native_ProGallery_Expand_InfoSettings_WhereInfo_Side"}]},"controllers_fullscreen_showInfoExpandButton":{"key":"controllers_fullscreen_showInfoExpandButton","title":"MISSING_Toggle info","description":"MISSING_Toggle info","type":"BOOLEAN","default":false},"controllers_fullscreen_allowFullscreenExpand":{"key":"controllers_fullscreen_allowFullscreenExpand","title":"Native_ProGallery_Expand_ViewingSettings_FullScreen","description":"Native_ProGallery_Expand_ViewingSettings_FullScreen_Tooltip","type":"BOOLEAN","default":true},"controllers_fullscreen_fullscreenLoop":{"key":"controllers_fullscreen_fullscreenLoop","title":"Native_ProGallery_Expand_ViewingSettings_Loop","description":"Native_ProGallery_Expand_ViewingSettings_Loop_Tooltip","type":"BOOLEAN","default":false},"controllers_fullscreen_allowFullscreenMagnifyImage":{"key":"controllers_fullscreen_allowFullscreenMagnifyImage","title":"Native_ProGallery_Expand_ViewingSettings_Magnifying","description":"Native_ProGallery_Expand_ViewingSettings_Magnifying_Tooltip","type":"BOOLEAN","default":false},"controllers_fullscreen_fullscreenMagnificationLevel":{"key":"controllers_fullscreen_fullscreenMagnificationLevel","title":"Native_ProGallery_Expand_ViewingSettings_MagnifyingSize","description":"MISSING_Magnification value","type":"NUMBER","min":1,"max":5,"step":1,"default":2},"controllers_fullscreen_fullscreenMagnificationPercent":{"key":"controllers_fullscreen_fullscreenMagnificationPercent","title":"Native_ProGallery_Expand_ViewingSettings_MagnifyingSize","type":"NUMBER","min":150,"max":500,"step":50,"unit":"percent","default":200},"controllers_fullscreen_backgroundBlurFilter":{"key":"controllers_fullscreen_backgroundBlurFilter","title":"Native_ProGallery_Expand_BackgroundFilters_Blur","description":"MISSING_Background blur filter","type":"NUMBER","min":1,"max":20,"step":1,"default":1},"controllers_fullscreen_backgroundGrayscaleFilter":{"key":"controllers_fullscreen_backgroundGrayscaleFilter","title":"Native_ProGallery_Expand_BackgroundFilters_Grayscale","description":"MISSING_Background Grayscale filter","type":"BOOLEAN","default":false},"FULLSCREEN_PREVIEW":{"key":"FULLSCREEN_PREVIEW","title":"Native_ProGallery_Expand_ExpandPreview_Header","type":"VIEWPORT","default":"","component":"FULLSCREEN"},"FULLSCREEN_CTA":{"key":"FULLSCREEN_CTA","title":"ProGallery_Settings_ClickOptions_Expand_Customize","type":"FULLSCREEN_PREVIEW_CTA","default":""},"controllers_stylableOptions_gallery":{"key":"controllers_stylableOptions_gallery","type":"STYLABLE","features":["FILL","SHADOW","CORNERS"],"selector":".root","title":"Native_ProGallery_Design_Option1_Container"},"controllers_stylableOptions_container":{"key":"controllers_stylableOptions_container","type":"STYLABLE","features":["FILL","SHADOW","CORNERS"],"selector":".root::pro-gallery-container","title":"Native_ProGallery_Design_Option1_Container"},"controllers_stylableOptions_item":{"key":"controllers_stylableOptions_item","type":"STYLABLE","features":["FILL","BORDERS","SHADOW","CORNERS"],"selector":".root::item","title":"Native_ProGallery_Design_Option2_Item","description":"StylablePanel_Design_State_Dropdown_Regular"},"controllers_stylableOptions_itemHover":{"key":"controllers_stylableOptions_itemHover","type":"STYLABLE","features":["FILL","BORDERS","SHADOW","CORNERS"],"selector":".root::item:hover","title":"Native_ProGallery_Design_Option2_Item","description":"StylablePanel_Design_State_Dropdown_Hover"},"controllers_stylableOptions_itemOverlay":{"key":"controllers_stylableOptions_itemOverlay","type":"STYLABLE","features":["FILL","BORDERS","SHADOW","CORNERS"],"selector":".root::item::overlay","title":"Native_ProGallery_Design_Option2_Item_Overlay","description":"StylablePanel_Design_State_Dropdown_Regular"},"controllers_stylableOptions_itemOverlayHover":{"key":"controllers_stylableOptions_itemOverlayHover","type":"STYLABLE","features":["FILL","BORDERS","SHADOW","CORNERS"],"selector":".root::item:hover::overlay","title":"Native_ProGallery_Design_Option2_Item_Overlay","description":"StylablePanel_Design_State_Dropdown_Hover"},"controllers_stylableOptions_itemContent":{"key":"controllers_stylableOptions_itemContent","type":"STYLABLE","features":["FILL","BORDERS","SHADOW","CORNERS"],"selector":".root::item::content","title":"Native_ProGallery_Design_Option2_Item_Content","description":"StylablePanel_Design_State_Dropdown_Regular"},"controllers_stylableOptions_itemContentHover":{"key":"controllers_stylableOptions_itemContentHover","type":"STYLABLE","features":["FILL","BORDERS","SHADOW","CORNERS"],"selector":".root::item:hover::content","title":"Native_ProGallery_Design_Option2_Item_Content","description":"StylablePanel_Design_State_Dropdown_Hover"},"controllers_stylableOptions_innerTitle":{"key":"controllers_stylableOptions_innerTitle","type":"STYLABLE","features":["TEXT","BORDERS","FILL","CORNERS","LAYOUT"],"selector":".root::item-hover-info-title","title":"Native_ProGallery_Design_Option6_Hover_Title"},"controllers_stylableOptions_innerDescription":{"key":"controllers_stylableOptions_innerDescription","type":"STYLABLE","features":["TEXT","BORDERS","FILL","CORNERS","LAYOUT"],"selector":".root::item-hover-info-description","title":"Native_ProGallery_Design_Option7_Hover_Description"},"controllers_stylableOptions_externalTitle":{"key":"controllers_stylableOptions_externalTitle","type":"STYLABLE","features":["TEXT","BORDERS","FILL","CORNERS","LAYOUT"],"selector":".root::item-external-info-title","title":"Native_ProGallery_Design_Option4_Ext_Title"},"controllers_stylableOptions_externalDescription":{"key":"controllers_stylableOptions_externalDescription","type":"STYLABLE","features":["TEXT","BORDERS","FILL","CORNERS","LAYOUT"],"selector":".root::item-external-info-description","title":"Native_ProGallery_Design_Option5_Ext_Description"},"controllers_stylableOptions_innerTitleRegular":{"key":"controllers_stylableOptions_innerTitleRegular","type":"STYLABLE","features":["TEXT","BORDERS","FILL","CORNERS","LAYOUT"],"selector":".root::item::item-hover-info-title","title":"Native_ProGallery_Design_Option6_Hover_Title","description":"StylablePanel_Design_State_Dropdown_Regular"},"controllers_stylableOptions_innerTitleHover":{"key":"controllers_stylableOptions_innerTitleHover","type":"STYLABLE","features":["TEXT","BORDERS","FILL","CORNERS","LAYOUT"],"selector":".root::item:hover::item-hover-info-title","title":"Native_ProGallery_Design_Option6_Hover_Title","description":"StylablePanel_Design_State_Dropdown_Hover"},"controllers_stylableOptions_innerDescriptionRegular":{"key":"controllers_stylableOptions_innerDescriptionRegular","type":"STYLABLE","features":["TEXT","BORDERS","FILL","CORNERS","LAYOUT"],"selector":".root::item::item-hover-info-description","title":"Native_ProGallery_Design_Option7_Hover_Description","description":"StylablePanel_Design_State_Dropdown_Regular"},"controllers_stylableOptions_innerDescriptionHover":{"key":"controllers_stylableOptions_innerDescriptionHover","type":"STYLABLE","features":["TEXT","BORDERS","FILL","CORNERS","LAYOUT"],"selector":".root::item:hover::item-hover-info-description","title":"Native_ProGallery_Design_Option7_Hover_Description","description":"StylablePanel_Design_State_Dropdown_Hover"},"controllers_stylableOptions_externalTitleRegular":{"key":"controllers_stylableOptions_externalTitleRegular","type":"STYLABLE","features":["TEXT","BORDERS","FILL","CORNERS","LAYOUT"],"selector":".root::item::item-external-info-title","title":"Native_ProGallery_Design_Option4_Ext_Title","description":"StylablePanel_Design_State_Dropdown_Regular"},"controllers_stylableOptions_externalTitleHover":{"key":"controllers_stylableOptions_externalTitleHover","type":"STYLABLE","features":["TEXT","BORDERS","FILL","CORNERS","LAYOUT"],"selector":".root::item:hover::item-external-info-title","title":"Native_ProGallery_Design_Option4_Ext_Title","description":"StylablePanel_Design_State_Dropdown_Hover"},"controllers_stylableOptions_externalDescriptionRegular":{"key":"controllers_stylableOptions_externalDescriptionRegular","type":"STYLABLE","features":["TEXT","BORDERS","FILL","CORNERS","LAYOUT"],"selector":".root::item::item-external-info-description","title":"Native_ProGallery_Design_Option5_Ext_Description","description":"StylablePanel_Design_State_Dropdown_Regular"},"controllers_stylableOptions_externalDescriptionHover":{"key":"controllers_stylableOptions_externalDescriptionHover","type":"STYLABLE","features":["TEXT","BORDERS","FILL","CORNERS","LAYOUT"],"selector":".root::item:hover::item-external-info-description","title":"Native_ProGallery_Design_Option5_Ext_Description","description":"StylablePanel_Design_State_Dropdown_Hover"},"controllers_stylableOptions_loadMore":{"key":"controllers_stylableOptions_loadMore","type":"STYLABLE","features":["TEXT","FILL","BORDERS","SHADOW","CORNERS"],"selector":".root::loadmore","title":"Native_ProGallery_Design_Option3_LoadMoreBtn"},"controllers_stylableOptions_arrowContainer":{"key":"controllers_stylableOptions_arrowContainer","type":"STYLABLE","features":["FILL","BORDERS","SHADOW","CORNERS"],"selector":".root::gallery-arrows","title":"Native_ProGallery_Design_Option9_Arrow_Container","description":"StylablePanel_Design_State_Dropdown_Regular"},"controllers_stylableOptions_arrowContainerHover":{"key":"controllers_stylableOptions_arrowContainerHover","type":"STYLABLE","features":["FILL","BORDERS","SHADOW","CORNERS"],"selector":".root::gallery-arrows:hover","title":"StylablePanel_Design_State_Dropdown_Hover"},"controllers_stylableOptions_arrowIcon":{"key":"controllers_stylableOptions_arrowIcon","type":"STYLABLE","features":[{"type":"ICON","noResizing":true,"hideShownToggle":true}],"selector":".root::gallery-arrows::gallery-arrows-icon","title":"Native_ProGallery_Design_Option8_Arrow_Icon","description":"StylablePanel_Design_State_Dropdown_Regular"},"controllers_stylableOptions_arrowIconHover":{"key":"controllers_stylableOptions_arrowIconHover","type":"STYLABLE","features":[{"type":"ICON","noResizing":true,"hideShownToggle":true}],"selector":".root::gallery-arrows:hover::gallery-arrows-icon","title":"StylablePanel_Design_State_Dropdown_Hover"},"controllers_stylableOptions_innerCustomButtonRegular":{"key":"controllers_stylableOptions_innerCustomButtonRegular","type":"STYLABLE","features":["TEXT","FILL","BORDERS","SHADOW","CORNERS","LAYOUT"],"selector":".root::item::item-hover-custom-button","title":"Native_ProGallery_Design_Option12_Button","description":"StylablePanel_Design_State_Dropdown_Regular"},"controllers_stylableOptions_innerCustomButtonHover":{"key":"controllers_stylableOptions_innerCustomButtonHover","type":"STYLABLE","features":["TEXT","FILL","BORDERS","SHADOW","CORNERS","LAYOUT"],"selector":".root::item:hover::item-hover-custom-button","title":"Native_ProGallery_Design_Option12_Button","description":"StylablePanel_Design_State_Dropdown_Hover"},"controllers_stylableOptions_externalCustomButtonRegular":{"key":"controllers_stylableOptions_externalCustomButtonRegular","type":"STYLABLE","features":["TEXT","FILL","BORDERS","SHADOW","CORNERS","LAYOUT"],"selector":".root::item::item-external-custom-button","title":"Native_ProGallery_Design_Option13_Button_Ext","description":"StylablePanel_Design_State_Dropdown_Regular"},"controllers_stylableOptions_externalCustomButtonHover":{"key":"controllers_stylableOptions_externalCustomButtonHover","type":"STYLABLE","features":["TEXT","FILL","BORDERS","SHADOW","CORNERS","LAYOUT"],"selector":".root::item:hover::item-external-custom-button","title":"Native_ProGallery_Design_Option13_Button_Ext","description":"StylablePanel_Design_State_Dropdown_Hover"},"controllers_stylableOptions_externalInfoSocialButtonRegular":{"key":"controllers_stylableOptions_externalInfoSocialButtonRegular","type":"STYLABLE","features":["ICON",{"type":"LAYOUT_MARGIN","selector":".root::item::item-external-info-social-button-container"}],"selector":".root::item::item-external-info-social-button","title":"Native_ProGallery_Design_Option11_SocialIcons_Ext","description":"StylablePanel_Design_State_Dropdown_Regular"},"controllers_stylableOptions_externalInfoSocialButtonHover":{"key":"controllers_stylableOptions_externalInfoSocialButtonHover","type":"STYLABLE","features":["ICON",{"type":"LAYOUT_MARGIN","selector":".root::item::item-external-info-social-button-container"}],"selector":".root::item:hover::item-external-info-social-button","title":"Native_ProGallery_Design_Option11_SocialIcons_Ext","description":"StylablePanel_Design_State_Dropdown_Hover"},"controllers_stylableOptions_internalInfoSocialButtonRegular":{"key":"controllers_stylableOptions_internalInfoSocialButtonRegular","type":"STYLABLE","selector":".root::item::item-internal-info-social-button","features":["ICON",{"type":"LAYOUT_MARGIN","selector":".root::item::item-internal-info-social-button-container"}],"title":"Native_ProGallery_Design_Option10_SocialIcons","description":"StylablePanel_Design_State_Dropdown_Regular"},"controllers_stylableOptions_internalInfoSocialButtonHover":{"key":"controllers_stylableOptions_internalInfoSocialButtonHover","type":"STYLABLE","features":["ICON",{"type":"LAYOUT_MARGIN","selector":".root::item::item-internal-info-social-button-container"}],"selector":".root::item:hover::item-internal-info-social-button","title":"Native_ProGallery_Design_Option10_SocialIcons","description":"StylablePanel_Design_State_Dropdown_Hover"},"controllers_showManageMedia":{"key":"controllers_showManageMedia","title":"NOT_SUPPORTED_FORCE_SHOW_MANAGE_MEDIA","type":"BOOLEAN","default":false,"noBottomDivider":true,"textLabel":"this is not supported, will force the manage media gfpp to show"}}');delete Cr.$schema,delete Nr.$schema,delete xr.$schema,delete Dr.$schema;const Mr={...Cr,...Dr},Gr={...Object.values(Mr).reduce(((e,t)=>({...e,[t.key]:t.default})),{})},Hr=e=>({...Gr,...e}),kr={START:"left",CENTER:"center",END:"right"},Br={START:"flex-start",CENTER:"center",END:"flex-end"};var zr=function(e,t){return r=>{const i=function(e,t){const r=t.options.filter((t=>-1===e.indexOf(t.key)));if(0===r.length)return e;const i=e.split(",");return r.forEach((e=>{if("top"===e.defaultSection){const t=i.findIndex((e=>"middle"===e));i.splice(t,0,e.key)}else if("middle"===e.defaultSection){const t=i.findIndex((e=>"bottom"===e));i.splice(t,0,e.key)}else i.push(e.key)})),i.join(",")}(r,e),a=function(e,t){const r=t.options.filter((e=>"section"===e.type)),i=r.reduce(((e,t)=>({...e,[t.key]:[]})),{});let a=r[0];const o=e.split(",");for(const e of o){const t=r.findIndex((t=>t.key===e));-1===t?i[a.key].push(e):a=r[t]}return i}(i,e);return t(a)}};const Fr={NEW_EXTERNAL_INFO_TOGGLE:"controllers_layoutParams_info_newInfo_external_enabled",WIDTH_IN_PIXEL:"controllers_layoutParams_info_width_pixel",WIDTH_IN_PERCENT:"controllers_layoutParams_info_width_percent",VERTICAL_ALIGN:"controllers_layoutParams_info_verticalAlignment",HORIZONTAL_ALIGN:"controllers_layoutParams_info_horizontalAlignment",VERTICAL_PADDING:"controllers_layoutParams_info_verticalPadding",HORIZONTAL_PADDING:"controllers_layoutParams_info_horizontalPadding",ALLOW_TITLE:"controllers_layoutParams_info_allowTitle",ALLOW_DESCRIPTION:"controllers_layoutParams_info_allowDescription",ALLOW_TITLE_AND_DESCRIPTION:"controllers_layoutParams_info_allowTitleAndDescription",EXTERNAL_MASTER_INFO_ENABLED:"controllers_layoutParams_infoElementOptions_external_enabled",EXTERNAL_MASTER_INFO_ORDER:"controllers_layoutParams_infoElementOptions_external_order",EXTERNAL_INFO_PLACEMENT:"controllers_layoutParams_external_info_placement",ORIGINAL_INFO_PLACEMENT:"layoutParams_info_placement",USE_NEW_INFO:"controllers_experimental_useNewInfo",INTERNAL_MASTER_INFO_ENABLED:"controllers_layoutParams_infoElementOptions_internal_enabled",INTERNAL_MASTER_INFO_ORDER:"controllers_layoutParams_infoElementOptions_internal_order",EXTERNAL_SOCIAL_BUTTONS_ALIGNMENT:"controllers_layoutParams_external_info_SocialButtonsHorizontalAlignment",INTERNAL_SOCIAL_BUTTONS_ALIGNMENT:"controllers_layoutParams_internal_info_SocialButtonsHorizontalAlignment",EXTERNAL_INFO_HEIGHT:"layoutParams_info_height"},[Ur,Wr]=Xr(Fr.EXTERNAL_MASTER_INFO_ORDER,Fr.EXTERNAL_MASTER_INFO_ENABLED),[Vr,jr]=Xr(Fr.INTERNAL_MASTER_INFO_ORDER,Fr.INTERNAL_MASTER_INFO_ENABLED);function Yr(e,t){return zr(t,(t=>{const r={top:t.top.join(","),middle:t.middle.join(","),bottom:t.bottom.join(",")};return Ee({infoElementsOptions:{[e]:{order:r}}})}))}function $r(e){return t=>{const r={socialParams:{horizontalAlignment:t.toLowerCase()}};return Ee({infoElementsOptions:{[e]:r}})}}function Kr(e){return t=>{try{const r=t.split(","),i={enabled:{Title:r.includes("Title"),Description:r.includes("Description"),CustomButton:r.includes("CustomButton"),Social:r.includes("Social")},socialParams:{options:{loveButton:!1,allowSocial:!1,loveCounter:!1,allowDownload:!0}}};return Ee({infoElementsOptions:{[e]:i}})}catch(e){return console.log("error parsing json",e),{}}}}function Xr(e,t){return[{key:e,enabledKey:t,title:e.includes("internal")?"On Image":"Around Image",type:"DRAGGABLE",options:[{type:"section",key:"top",label:"top"},{type:"section",key:"middle",label:"middle"},{type:"section",key:"bottom",label:"bottom"},{type:"item",key:"Title",label:"Title",defaultSection:"top"},{type:"item",key:"Description",label:"Description",defaultSection:"top"},{type:"item",key:"CustomButton",label:"CustomButton",defaultSection:"top"},{type:"item",key:"Social",label:"Social",defaultSection:"bottom"}],enabledKeyDefualt:"",controller:"DRAGGABLE",default:"top,Title,Description,CustomButton,middle,bottom,Social"},{key:t,type:"TEXT",title:"",default:""}]}const qr={[Fr.EXTERNAL_INFO_PLACEMENT]:(e,t)=>{if("true"===t.controllers_experimental_useNewInfo){const t=!0?e:"OVERLAY";return{[Y.Z.layoutParams.info.placement]:t}}return{[Y.Z.layoutParams.info.placement]:t.layoutParams_info_placement}},[Fr.WIDTH_IN_PIXEL]:(e,t)=>{if("PIXEL"===t[Y.Z.layoutParams.info.sizeUnits]&&void 0!==e)return{[Y.Z.layoutParams.info.width]:e}},[Fr.EXTERNAL_MASTER_INFO_ENABLED]:Kr("external"),[Fr.EXTERNAL_MASTER_INFO_ORDER]:Yr("external",Ur),[Fr.INTERNAL_MASTER_INFO_ENABLED]:Kr("internal"),[Fr.INTERNAL_MASTER_INFO_ORDER]:Yr("internal",Vr),[Fr.WIDTH_IN_PERCENT]:(e,t)=>{if("PERCENT"===t[Y.Z.layoutParams.info.sizeUnits]&&void 0!==e)return{[Y.Z.layoutParams.info.width]:e}},[Fr.HORIZONTAL_ALIGN]:(e,t)=>{if(void 0!==e)return{galleryHorizontalAlign:Br[e],galleryTextAlign:kr[e]}},[Fr.ALLOW_TITLE_AND_DESCRIPTION]:e=>({controllers_layoutParams_info_allowTitle:e.includes(Fr.ALLOW_TITLE),controllers_layoutParams_info_allowDescription:e.includes(Fr.ALLOW_DESCRIPTION)}),[Fr.EXTERNAL_SOCIAL_BUTTONS_ALIGNMENT]:$r("external"),[Fr.INTERNAL_SOCIAL_BUTTONS_ALIGNMENT]:$r("internal"),[Fr.NEW_EXTERNAL_INFO_TOGGLE]:(e,t)=>"true"===t.controllers_experimental_useNewInfo?e?{}:{[Y.Z.layoutParams.info.placement]:"OVERLAY"}:{}},Jr={OVERLAY_ENABLED:"controllers_behaviourParams_item_overlay_enabled",OVERLAY_TYPE:"controllers_behaviourParams_item_overlay_overlayType",SIZE_IN_PIXEL:"controllers_behaviourParams_item_overlay_size_pixel",SIZE_IN_PERCENT:"controllers_behaviourParams_item_overlay_size_percent",HOVER_ANIMATION_BEHAVIOR:"controllers_behaviourParams_item_overlay_hoverAnimationBehavior"};const Qr={[Jr.OVERLAY_ENABLED]:(e,t)=>function(e){return"true"===e.controllers_experimental_useNewInfo}(t)?{[Y.Z.behaviourParams.item.overlay.hoveringBehaviour]:e?"ALWAYS_SHOW":"NEVER_SHOW"}:{},[Jr.OVERLAY_TYPE]:e=>{if("FULL"===e)return{[Y.Z.behaviourParams.item.overlay.sizeUnits]:"PERCENT",[Y.Z.behaviourParams.item.overlay.size]:100,[Y.Z.behaviourParams.item.overlay.position]:"BOTTOM",[Y.Z.behaviourParams.item.overlay.padding]:0}},[Jr.SIZE_IN_PIXEL]:(e,t)=>{const r=t[Y.Z.behaviourParams.item.overlay.sizeUnits],i=t[Jr.OVERLAY_TYPE];if("PIXEL"===r&&"PARTIAL"===i&&void 0!==e)return{[Y.Z.behaviourParams.item.overlay.size]:e}},[Jr.SIZE_IN_PERCENT]:(e,t)=>{const r=t[Y.Z.behaviourParams.item.overlay.sizeUnits],i=t[Jr.OVERLAY_TYPE];if("PERCENT"===r&&"PARTIAL"===i&&void 0!==e)return{[Y.Z.behaviourParams.item.overlay.size]:e}}},ei={VOLUME:"controllers_optionsMap_behaviourParams_item_video_volume"},ti={[ei.VOLUME]:e=>({[Y.Z.behaviourParams.item.video.volume]:e?1:0})},ri={GALLERY_RATIO_METHOD:"controllers_layoutParams_structure_galleryRatio_method",GALLERY_RATIO_VALUE:"controllers_layoutParams_structure_galleryRatio_value",GALLERY_THUMBNAILS_MARGIN_TO_GALLERY:"controllers_layoutParams_thumbnails_marginToGallery",GALLERY_WIDTH_METHOD:"controllers_layoutParams_structure_imageWidth_method",GALLERY_WIDTH_VALUE:"controllers_layoutParams_structure_numberOfDisplayedItems",GALLERY_CONTAINERS_RATIO:"layoutParams_crop_ratios"},ii={[ri.GALLERY_RATIO_VALUE]:(e,t)=>"FIXED"===t[ri.GALLERY_RATIO_METHOD]?{[Y.Z.layoutParams.structure.galleryRatio.value]:1/e}:{[Y.Z.layoutParams.structure.galleryRatio.value]:0},[ri.GALLERY_WIDTH_VALUE]:(e,t)=>"RESPONSIVE"===t[ri.GALLERY_WIDTH_METHOD]?{[Y.Z.layoutParams.crop.ratios]:[`${(100/e).toFixed(2)}%/100%`]}:{},[ri.GALLERY_THUMBNAILS_MARGIN_TO_GALLERY]:e=>({[Y.Z.layoutParams.thumbnails.marginToGallery]:e})},ai={ALLOW_TITLE:"controllers_fullscreen_allowTitleExpand",ALLOW_DESCRIPTION:"controllers_fullscreen_allowDescriptionExpand",ALLOW_LINK:"controllers_fullscreen_allowLinkExpand",WHEN_TO_SHOW_INFO:"controllers_fullscreen_whenToShowInfo",EXPAND_INFO_POSITION:"controllers_fullscreen_expandInfoPosition",SHOW_INFO_BUTTON:"controllers_fullscreen_showInfoExpandButton",DEFAULT_SHOW_INFO_BUTTON:"controllers_fullscreen_defaultShowInfoExpand",ALLOW_FULLSCREEN_EXPAND:"controllers_fullscreen_allowFullscreenExpand",LOOP:"controllers_fullscreen_fullscreenLoop",ALLOW_MAGNIFY_IMAGE:"controllers_fullscreen_allowFullscreenMagnifyImage",MAGNIFICATION_LEVEL:"controllers_fullscreen_fullscreenMagnificationLevel",MAGNIFICATION_PERCENT:"controllers_fullscreen_fullscreenMagnificationPercent",BACKGROUND_BLUR_FILTER:"controllers_fullscreen_backgroundBlurFilter",BACKGROUND_GRAYSCAL_EFILTER:"controllers_fullscreen_backgroundGrayscaleFilter",FULLSCREEN_PREVIEW:"FULLSCREEN_PREVIEW",FULLSCREEN_ITEM_CLICK:"controllers_fullscreen_itemClick",FULLSCREEN_CTA:"FULLSCREEN_CTA"},oi={[ai.WHEN_TO_SHOW_INFO]:e=>{const t="ON_TOGGLE"===e;return{[ai.SHOW_INFO_BUTTON]:t,[ai.DEFAULT_SHOW_INFO_BUTTON]:!t}},[ai.MAGNIFICATION_PERCENT]:e=>{const t=e/100;return{[ai.MAGNIFICATION_LEVEL]:t}},[Y.Z.behaviourParams.item.clickAction]:e=>({[ai.FULLSCREEN_ITEM_CLICK]:e.toLowerCase()})},si={INFO:qr,OVERLAY:Qr,VIDEO:ti,GALLERY:ii,FULLSCREEN:oi};function ni(e,t){void 0===t&&(t=["INFO","OVERLAY","VIDEO","GALLERY","FULLSCREEN"]);let r={...e};return t.forEach((t=>{Object.keys(si[t]).forEach((i=>{const a=e[i];if(void 0!==a){const e=si[t][i];"function"==typeof e?r={...r,...e(a,r)||{}}:r[e]=a}}))})),r}const li={allowDownload:!1,allowSocial:!1,loveButton:!1,isStoreGallery:!1,loveCounter:!0,allowTitle:!0,allowExifExpand:!1,addToCartButtonText:"",galleryAlignExpand:"left",mobileSwipeAnimation:"EXPAND",enableFullscreenVideoPlaceholder:!0,allowBackgroundGradient:!1,backgroundGradientDegrees:180,stylingParams_itemResolutionMode:"SCALED_DOWN",layoutParams_navigationArrows_position:"MOUSE_CURSOR"},ui={[Y.Z.layoutParams.crop.enable]:!1,[Y.Z.layoutParams.targetItemSize.unit]:"SMART",[Y.Z.behaviourParams.item.secondaryMedia.trigger]:p.Z.behaviourParams_item_secondaryMedia_trigger.HOVER};const ci=(e,t)=>{let r={...e};if(e[Y.Z.behaviourParams.item.clickAction]){const t={MAGNIFY:"MAGNIFY",LINK:"LINK",NOTHING:"NOTHING",EXPAND:"ACTION",FULLSCREEN:"ACTION",ACTION:"ACTION"};r[Y.Z.behaviourParams.item.clickAction]=t[e[Y.Z.behaviourParams.item.clickAction]]||"NOTHING"}if(e[Y.Z.layoutParams.crop.ratios]){const t=[Number(e[Y.Z.layoutParams.crop.ratios])];r[Y.Z.layoutParams.crop.ratios]=t}r=ni(r,["INFO","OVERLAY","VIDEO","GALLERY"]);const i=function(e){return"true"===(null==e?void 0:e.controllers_experimental_useNewInfo)}(r);i?ui.EXPERIMENTALallowParallelInfos=!0:p.Z.isLayout("SLIDESHOW")(r)&&(r[Y.Z.behaviourParams.item.overlay.hoveringBehaviour]=p.Z.behaviourParams_item_overlay_hoveringBehaviour.NEVER_SHOW),"NO_CHANGE"===r[Y.Z.behaviourParams.item.overlay.hoveringBehaviour]&&(r[Y.Z.behaviourParams.item.overlay.hoveringBehaviour]=p.Z.behaviourParams_item_overlay_hoveringBehaviour.ALWAYS_SHOW),"EDIT"===t&&r[Y.Z.layoutParams.navigationArrows.position]===p.Z.layoutParams_navigationArrows_position.MOUSE_CURSOR&&(r[Y.Z.layoutParams.navigationArrows.position]=p.Z.layoutParams_navigationArrows_position.ON_GALLERY);return{...r,...ui}},hi=(e,t)=>{let r={...e};if(t[Y.Z.behaviourParams.item.clickAction]){const e={EXPAND:"EXPAND",FULLSCREEN:"FULLSCREEN"};r[Y.Z.behaviourParams.item.clickAction]=e[t[Y.Z.behaviourParams.item.clickAction]]||"EXPAND"}r=ni(r,["FULLSCREEN"]);return Object.entries(r).filter((e=>{let[t]=e;return t.startsWith("controllers_fullscreen_")})).reduce(((e,t)=>{let[r,i]=t;return e[r.replace("controllers_fullscreen_","")]=i,e}),li)};var mi=(e,t)=>{const r=ci(e,t);return{options:r,fullscreenOverrides:hi(r,e)}};const pi="ProGallery";function di(e){const t=(0,r.useRef)(null),[i,a]=(0,r.useState)(e.compProperties),o=(0,r.useMemo)((()=>function(e,t){const r=new Map,i="--"+t+"-"+pi+"-",a=Object.keys(Mr);return function(){if(!e.current)return{hasChanges:!1,options:{}};const t={};let o=!1;const s=window.getComputedStyle(e.current);for(const e of a){const a=""+i+e,n=s.getPropertyValue(a);if(!n)continue;if(n===r.get(e))continue;const l=Lr(n);r.set(e,n),o=!0,t[e]=l}return{hasChanges:o,options:t}}}(t,e.styleId)),[e.styleId]),s=(0,r.useCallback)((()=>{const{hasChanges:t,options:r}=o();t&&a((e=>({...e,...r}))),e.setIsKnownOptions(!0)}),[o,e]),n=(0,r.useMemo)((()=>Ir(s,100)),[s]);Or({elem:t.current||null,callback:n});const{options:l,fullscreenOverrides:u}=(0,r.useMemo)((()=>{const t={...Hr(i),...e.imageOnClickAction&&{itemClick:e.imageOnClickAction},...Ee(e.manualStyleParams||{}),...e.editorOverrides};return mi(t,e.viewMode)}),[i,e.viewMode,e.imageOnClickAction,e.manualStyleParams,e.editorOverrides]);return{options:l,rawOptions:i,fullscreenOverrides:u,forceUpdate:s,elementRef:t}}const yi={desktop:{width:980,height:500},mobile:{width:320,height:500}},gi={desktop:{width:980,height:10},mobile:{width:320,height:10}},_i=(e,t)=>{const{editorLayoutHeight:i,editorLayoutWidth:a,options:o,deviceType:s,viewMode:n}=e,l=(()=>{const[e,t]=(0,r.useState)(!0);return(0,r.useEffect)((()=>{t(!1)}),[]),e})(),{responsive:u}=o,{mobile:c,desktop:h}="SITE"===n?yi:gi,m="mobile"===s,p=m?c.width:h.width,d=m?c.height:h.height,y={isDefaultContainer:!0,width:u?p:a,height:u?d:i},[g,_]=(0,r.useState)(y),[v,P]=(0,r.useState)(g.height),f=(0,r.useRef)(null);(0,r.useEffect)((()=>P(i||v)),[i]);const b=(0,r.useCallback)((()=>{var e,r;_({width:null==(e=f.current)?void 0:e.clientWidth,height:null==(r=f.current)?void 0:r.clientHeight}),t(!0)}),[f,t]),I=(0,r.useMemo)((()=>Ir(b,100)),[b]);Or({ref:f,callback:I});const S=u?{}:{height:v},E=l?Rr.classes["container-prerender"]:"";return{setHeight:e=>{P(e),u&&_({...g,height:e})},container:g,containerRef:f,containerStyle:S,containerClassName:E}},vi=(e,o)=>{const{id:s,items:n,wixSDKItems:l,itemsSrc:u="organizeMedia",className:c,customClassNames:h=[],stylableClassName:m,forceState:p={},onItemClicked:d=(()=>{}),onCurrentItemChanged:y=(()=>{}),onGetMoreItems:g=(()=>{}),onGalleryNavigationStart:_=(()=>{}),isExternalPagination:v,totalItemsCount:P,onMouseEnter:f,onMouseLeave:b,imageOnClickAction:I,isQaMode:S,fullNameCompType:E,shouldUseNewInfoElements:O,viewMode:T,deviceType:Z,styleId:L,manualStyleParams:w,isInFirstFold:A,positionAbsoluteForFiniteHeightGalleries:R}=e,[C,N]=(0,r.useState)(!1),[x,D]=(0,r.useState)(!1),{setHeight:M,container:G,containerRef:H,containerStyle:k,containerClassName:B}=_i(e,N),z=function(e){const[t,i]=(0,r.useState)(0);return(0,r.useEffect)((()=>{let t=null;const r=new IntersectionObserver((e=>{let[r]=e;if(r.isIntersecting&&t){const e=t.getBoundingClientRect();i(e.top+window.pageYOffset)}}),{root:null,threshold:0,rootMargin:"0px"});if(e.current){t=e.current;const a=t.getBoundingClientRect();i(a.top+window.pageYOffset),r.observe(t)}return()=>{t&&r.unobserve(t)}}),[e]),t}(H),F=t=>{var r;const i=null==(r=e.experiments)?void 0:r[t];return!!i&&"false"!==i},U=wr(F);O&&(U.newInfoElements=O);const{options:W,rawOptions:V,fullscreenOverrides:j,elementRef:$,forceUpdate:K}=di({compProperties:e.options,isExperimentOpen:F,styleId:L,setIsKnownOptions:D,viewMode:T||"SITE",experimentalFeatures:U,manualStyleParams:w,imageOnClickAction:I,..."EDIT"===T&&{editorOverrides:{alwaysShowHover:Tr(p)}}}),{variantResizeWatcherRef:X}=(e=>{const t=(0,r.useRef)(null),i=(0,r.useCallback)((()=>{e()}),[e]);return Or({ref:t,callback:i}),{variantResizeWatcherRef:t}})(K),[q,J]=(0,r.useState)([]);i().useImperativeHandle(o,(()=>({addItems:e=>{J(e)},next:()=>{null==ee||ee.next()},previous:()=>{null==ee||ee.previous()},navigateNextEnabled:()=>null==ee?void 0:ee.navigateNextEnabled(),navigatePreviousEnabled:()=>null==ee?void 0:ee.navigatePreviousEnabled(),currentIndex:()=>null==ee?void 0:ee.currentIndex(),triggerItemClick:e=>null==ee?void 0:ee.triggerItemClick(void 0,{itemIndex:e}),navigateToIndex:(e,t)=>null==ee?void 0:ee.navigateToIndex(e,t)})));const Q=(0,r.useMemo)((()=>("wixSDK"===u?l:n.map(Zr))||[]),[n,l,u]);O&&(U.newInfoElements=O);const[ee,te]=(0,r.useState)(void 0),re=a().ITEM_CLICKED((e=>{d({itemIndex:e.idx,type:e.type})})).CURRENT_ITEM_CHANGED((e=>{y({itemIndex:e.idx,type:e.type})})).NEED_MORE_ITEMS((e=>{g({from:e})})).GALLERY_NAVIGATION_START((e=>{_({animationDuration:e.scrollParams.durationInMS,continuousScroll:e.scrollParams.isContinuousScrolling,autoplay:!e.scrollParams.isManual,currentIndex:e.scrollParams.itemIdx,scrollDirection:e.scrollParams.scrollDirection,slideTransition:e.scrollParams.slideTransition})})).NAVIGATION_API_READY((e=>{te(e)})).done(),ie=!(x&&C||"SITE"!==T);return i().createElement("div",t()({id:s,className:(0,Rr.st)(Rr.classes.container,c,B),ref:H,style:k},((e,t)=>e?{"data-comp":t,"data-aid":t}:{})(S,E),(e=>Object.entries(e).reduce(((e,[t,r])=>(t.includes("data-")&&(e[t]=r),e)),{}))(e)),i().createElement("div",{className:(0,Rr.st)(Rr.classes.root,m,Er(Ar.root,...h)),onMouseEnter:f,onMouseLeave:b,ref:$},i().createElement("div",{id:"variant-resize-watcher",ref:X,style:{"--variant-count":"var(--"+L+"-ProGallery-variant_count)"}}),i().createElement(Pr,{isPrerenderMode:ie,experimentalFeatures:U,id:s,items:Q,itemsSrc:u,container:{...G,scrollBase:z},eventsListener:re,scrollingElement:H.current,deviceType:Z,isMobile:"mobile"===Z,staticMediaUrls:void 0,viewMode:T,setLayoutHeightImp:M,flattenOptions:W,flattenFullscreenOverrides:j,enableFullscreen:(ae=V,[br.behaviourParams_item_clickAction.EXPAND,br.behaviourParams_item_clickAction.FULLSCREEN].includes(ae[Y.Z.behaviourParams.item.clickAction]||"")||!1),isInFirstFold:A,isExternalPagination:v,addedItems:q||[],totalItemsCount:P,positionAbsoluteForFiniteHeightGalleries:R})));var ae};const Pi={ProGallery:{component:i().forwardRef(vi)}}}(),l}()})); //# sourceMappingURL=https://static.parastorage.com/services/editor-elements-library/dist/thunderbolt/rb_wixui.thunderbolt[ProGallery].7c81315a.bundle.min.js.map